zoujiajian %!s(int64=3) %!d(string=hai) anos
pai
achega
e3f112686d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netflix-dao/src/main/resources/mapper/CouponUserMapper.xml

+ 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