浏览代码

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

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>