|
|
@@ -23,6 +23,7 @@
|
|
|
when cu.id is null then 'collecting'
|
|
|
when cu.id is not null and cu.status != 'unused' then 'used'
|
|
|
when cu.id is not null and cu.valid_end_time < now() then 'expired'
|
|
|
+ when cu.id is not null and cu.valid_start_time > now() then 'noEffective'
|
|
|
when cu.id is not null and cu.status = 'unused' then 'received'
|
|
|
end) as couponStatus,
|
|
|
(case
|
|
|
@@ -35,7 +36,7 @@
|
|
|
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 not in ('used','expired') and flag is true order by `order`
|
|
|
+ </if>)s where couponStatus not in ('used','expired','noEffective') and flag is true order by `order`
|
|
|
</select>
|
|
|
|
|
|
<select id="getRecommendCouponList" resultType="com.cyksj.model.views.CouponAvailableRecommendView">
|