Преглед изворни кода

我的订单列表排序改为时间倒叙

anderx пре 7 година
родитељ
комит
f1da4720d9
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/main/java/com/goafanti/common/mapper/JtOrderMapper.xml

+ 1 - 0
src/main/java/com/goafanti/common/mapper/JtOrderMapper.xml

@@ -572,6 +572,7 @@ count(0)
   <if test="orderType!=null ">
   and (x.commodityType=#{orderType,jdbcType=INTEGER} or (#{orderType,jdbcType=INTEGER}=10 and (x.commodityType=1 or x.commodityType=0)))
   </if>
+  order by x.createTime desc
   <if test="page_sql!=null">
 			${page_sql}
 	</if>