Browse Source

fix 优惠券可用展示

zoujiajian 1 năm trước cách đây
mục cha
commit
eab4a790ae

+ 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