diff --git a/electripper-system/src/main/resources/mapper/system/EtCouponMapper.xml b/electripper-system/src/main/resources/mapper/system/EtCouponMapper.xml index 2e04001..79835a0 100644 --- a/electripper-system/src/main/resources/mapper/system/EtCouponMapper.xml +++ b/electripper-system/src/main/resources/mapper/system/EtCouponMapper.xml @@ -47,22 +47,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM et_coupon c left join et_operating_area a on a.area_id = c.area_id - - and c.name like concat('%', #{name}, '%') - and c.type = #{type} - and c.discount_percent = #{discountPercent} - and c.area_id = #{areaId} - and a.area_name like concat('%', #{areaName}, '%') - and c.discount_amount = #{discountAmount} - and c.status = #{status} - and c.limit_num = #{limitNum} - - AND c.type IN - - #{item} - - - + where del_flag != 2 + and c.name like concat('%', #{name}, '%') + and c.type = #{type} + and c.discount_percent = #{discountPercent} + and c.area_id = #{areaId} + and a.area_name like concat('%', #{areaName}, '%') + and c.discount_amount = #{discountAmount} + and c.status = #{status} + and c.limit_num = #{limitNum} + + AND c.type IN + + #{item} + +