|
|
@@ -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">
|