Browse Source

二手商城排序

huangzhiguo 2 years ago
parent
commit
ded6b40692
1 changed files with 1 additions and 1 deletions
  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">
         <if test="userIdentity == 2">
             AND p.visibility IN (1,2,3)
             AND p.visibility IN (1,2,3)
         </if>
         </if>
-        order by cshd.onLineDate desc
+        order by cshd.sold, cshd.onLineDate desc
     </select>
     </select>
     <select id="getSecondHandDetail" resultType="com.caimei365.commodity.model.vo.SecondDetailVo">
     <select id="getSecondHandDetail" resultType="com.caimei365.commodity.model.vo.SecondDetailVo">
         select
         select