|
|
@@ -46,8 +46,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countAvailableCouponList" resultType="java.lang.Integer">
|
|
|
- select count(distinct cu.id)
|
|
|
- (select cu.id,ca.expiry_status as flag from (
|
|
|
+ select count(distinct id)
|
|
|
+ from (select cu.id,ca.expiry_status as flag
|
|
|
from `coupon_user` cu
|
|
|
left join `coupon` cp on cp.id = cu.coupon_id
|
|
|
left join `coupon_sku` ck on ck.coupon_id = cp.id
|
|
|
@@ -66,7 +66,7 @@
|
|
|
and cu.valid_end_time > now()
|
|
|
<if test="isRenew != null and isRenew">
|
|
|
and cp.is_renew = #{isRenew}
|
|
|
- </if>))s where flag != 0 or flag is null
|
|
|
+ </if>)s where flag != 0 or flag is null
|
|
|
</select>
|
|
|
|
|
|
<select id="couponCenterList" resultType="com.cyksj.model.views.CouponActiveView">
|