zoujiajian 3 years ago
parent
commit
fbdf831ec3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netflix-dao/src/main/resources/mapper/CouponUserMapper.xml

+ 1 - 1
netflix-dao/src/main/resources/mapper/CouponUserMapper.xml

@@ -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