Эх сурвалжийг харах

fix 未生效优惠卷不展示

zoujiajian 3 жил өмнө
parent
commit
5cabf640d7

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

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