|
@@ -134,7 +134,7 @@
|
|
|
when cu.status = 'used' then 'used'
|
|
when cu.status = 'used' then 'used'
|
|
|
when cu.valid_end_time < now() then 'expired'
|
|
when cu.valid_end_time < now() then 'expired'
|
|
|
when ca.id is not null and ca.status = 0 then 'invalid'
|
|
when ca.id is not null and ca.status = 0 then 'invalid'
|
|
|
- when cu.valid_start_time < now() then 'notEffective'
|
|
|
|
|
|
|
+ when cu.valid_start_time > now() then 'notEffective'
|
|
|
else cu.status end) as couponUserStatus,
|
|
else cu.status end) as couponUserStatus,
|
|
|
(case
|
|
(case
|
|
|
when cu.status = 'used' then 4
|
|
when cu.status = 'used' then 4
|