Explorar o código

fix 未生效优惠卷不展示

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

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

@@ -59,6 +59,7 @@
         and cu.user_id = #{userId}
         and cu.status = 'unused'
         and cu.channel != 'exCode'
+        and cu.valid_start_time > now()
         <if test="isRenew != null and isRenew">
             and cp.is_renew = #{isRenew}
         </if>