浏览代码

二手商城排序

huangzhiguo 2 年之前
父节点
当前提交
ded6b40692
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/SecondHandMapper.xml

+ 1 - 1
src/main/resources/mapper/SecondHandMapper.xml

@@ -86,7 +86,7 @@
         <if test="userIdentity == 2">
             AND p.visibility IN (1,2,3)
         </if>
-        order by cshd.onLineDate desc
+        order by cshd.sold, cshd.onLineDate desc
     </select>
     <select id="getSecondHandDetail" resultType="com.caimei365.commodity.model.vo.SecondDetailVo">
         select