zoujiajian преди 3 години
родител
ревизия
fbdf831ec3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.valid_end_time < now() then 'expired'
                     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,
                (case
                     when cu.status = 'used' then 4