|
|
@@ -28,9 +28,9 @@
|
|
|
end) as `order`
|
|
|
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}
|
|
|
- where cr.deleted is true and c.deleted is true
|
|
|
+ where cr.deleted is true and c.deleted is true and cr.status = 1
|
|
|
<if test='!isNewUser'>
|
|
|
and c.scope !='newUser'
|
|
|
- </if>)s where couponStatus != 'used' order by `order`
|
|
|
+ </if>)s where couponStatus != 'used' and cr.status = 1 and cr.deleted is true order by `order`
|
|
|
</select>
|
|
|
</mapper>
|