src/main/resources/mapper/coupon/CouponTemplateMapperCustom.xml
@@ -76,8 +76,11 @@ SELECT * FROM t_coupon_template t WHERE t.deleted = FALSE AND t.get_start_date <= NOW() AND NOW() <= t.get_end_date <if test="param.category != null and param.category != '' and param.category == 'activity' "> AND t.get_start_date <= NOW() AND NOW() <= t.get_end_date </if> <if test="param.category != null and param.category != ''"> AND category = #{param.category} </if>