zoujiajian há 2 anos atrás
pai
commit
552a15c080

+ 1 - 2
netflix-dao/src/main/resources/mapper/CouponUserMapper.xml

@@ -54,9 +54,8 @@
             order by isAvailable desc,orderby
         </if>
         <if test="couponId != null">
-            order by case when cp.id = #{couponId} then 2 else isAvailable end desc,orderby
+            order by case when cp.id = #{couponId} then 2 else isAvailable end desc,orderby,couponMoney desc
         </if>)s where flag = 1 and couponUserStatus != 'used' and orderby != 2
-           order by couponMoney desc
     </select>
 
     <select id="countAvailableCouponList" resultType="com.cyksj.model.views.CouponUserView">