Просмотр исходного кода

fix 未生效优惠卷不展示

zoujiajian 3 лет назад
Родитель
Сommit
5cabf640d7
1 измененных файлов с 1 добавлено и 0 удалено
  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>