Просмотр исходного кода

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

anderx лет назад: 7
Родитель
Сommit
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>