Преглед на файлове

fix 未生效优惠卷不展示

zoujiajian преди 3 години
родител
ревизия
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>