@@ -367,7 +367,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
"AND c.start_time between #{reqVO.beginStartTime} and #{reqVO.endStartTime} ",
"</when>",
"<when test = 'reqVO.beginEndTime != null and reqVO.endEndTime != null'>",
"AND DATE_FORMAT(c.end_time,'%Y-%m-%d 23:59:59') between #{reqVO.beginEndTime} and #{reqVO.endEndTime} ",
"AND <![CDATA[ ( (DATE_FORMAT(c.end_time,'%Y-%m-%d 23:59:59') between #{reqVO.beginEndTime} and #{reqVO.endEndTime}) or (now() <= #{reqVO.endEndTime} and c.end_time is null) ) ]]> ",