소스 검색

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>