|
@@ -30,7 +30,6 @@
|
|
|
from coupon_recommend cr left join coupon c on c.id = cr.coupon_id
|
|
from coupon_recommend cr left join coupon c on c.id = cr.coupon_id
|
|
|
left join coupon_user cu on cu.coupon_id = c.id and cu.user_id = #{userId}
|
|
left join coupon_user cu on cu.coupon_id = c.id and cu.user_id = #{userId}
|
|
|
where cr.deleted is true and c.deleted is true and cr.status = 1
|
|
where cr.deleted is true and c.deleted is true and cr.status = 1
|
|
|
- and cu.id is null
|
|
|
|
|
<if test='!isNewUser'>
|
|
<if test='!isNewUser'>
|
|
|
and c.scope !='newUser'
|
|
and c.scope !='newUser'
|
|
|
</if>)s where couponStatus != 'used' and flag is true order by `order`
|
|
</if>)s where couponStatus != 'used' and flag is true order by `order`
|