diff --git a/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml index b80c584d4..214ba150c 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml @@ -32,7 +32,7 @@ else '[多商户通用]' end) as merchant_name, - c.remain_inventory, c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date,cs.send_sms + c.remain_inventory, c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date,c.valid_type,cs.send_sms @@ -109,17 +109,20 @@ from wx_coupon_send cs left join wx_coupon c on c.id = cs.coupon_id ) as tt - where 1=1 - - - and = now() ]]> - - - and - - - - + where + (tt.valid_type=1 + + + and = now() ]]> + + + and + + + + + ) + or tt.valid_type=2