| | |
| | | and t2.code LIKE CONCAT('%',#{req.code},'%') |
| | | </if> |
| | | <if test="req.type != null and req.type != '' and req.type == 1"> |
| | | and t2.coupon_discount_amount IS NOT NULL and t2.coupon_discount_amount != 0 |
| | | and (t2.coupon_discount_amount > 0) |
| | | </if> |
| | | <if test="req.type != null and req.type != '' and req.type == 2"> |
| | | and t2.vip_discount_amount IS NOT NULL and t2.vip_discount_amount != 0 |
| | | and ( t2.vip_discount_amount > 0) |
| | | </if> |
| | | <if test="req.type == null "> |
| | | and t2.vip_discount_amount IS NOT NULL and t2.vip_discount_amount != 0 and t2.coupon_discount_amount IS NOT NULL and t2.coupon_discount_amount != 0 |
| | | and (t2.vip_discount_amount > 0 or t2.coupon_discount_amount > 0) |
| | | </if> |
| | | <if test="null != req.userIds and req.userIds.size()>0" > |
| | | and t2.app_user_id in |
| | |
| | | <if test="req.endTime != null and req.endTime != '' and req.startTime != null and req.startTime != ''"> |
| | | AND (t2.create_time between CONCAT(#{req.startTime},':00') and CONCAT(#{req.endTime},':59')) |
| | | </if> |
| | | and t2.refund_status !=2 |
| | | and t2.payment_status =2 |
| | | AND t2.del_flag = ${@com.ruoyi.common.core.enums.DelFlagEnum@NO.getCode()} |
| | | </if> |