zoujiajian 3 жил өмнө
parent
commit
e3f112686d

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

@@ -140,7 +140,7 @@
                     when cu.status = 'used' then 4
                     when cu.valid_end_time < now() then 2
                     when ca.id is not null and ca.status = 0 then 3
-                    when cu.valid_start_time < now() then 1
+                    when cu.valid_start_time > now() then 1
                     when cu.status = 'unused' then 0
                    end)                 as orderby
         from `coupon_user` cu