Explorar o código

fix 优惠券可用展示

zoujiajian hai 1 ano
pai
achega
eab4a790ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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