소스 검색

fix 优惠券可用展示

zoujiajian 1 년 전
부모
커밋
eab4a790ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netflix-dao/src/main/resources/mapper/CouponUserMapper.xml

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

@@ -51,7 +51,7 @@
         and cu.channel != 'exCode'
         and cu.valid_end_time > now()
         <if test="couponId == null">
-            order by isAvailable desc,orderby
+            order by isAvailable desc,orderby,couponMoney desc
         </if>
         <if test="couponId != null">
             order by case when cp.id = #{couponId} then 2 else isAvailable end desc,orderby,couponMoney desc