diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index 7d7eb75c5..48ff05124 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -294,11 +294,6 @@ - - - - - @@ -359,6 +354,7 @@ and tcm.status = 0) as mc from wx_coupon_order tco) com where com.tcoid = co.id + and co.coupon_type < 7 and c.id = co.coupon_id and co.tenant_id = #{tenantId} @@ -397,7 +393,6 @@ left join wx_merchant_b_user bu on co.b_user_id = bu.id left join wx_merchant m on m.id = bu.merchant_id where co.id = #{id} - and co.coupon_type < 7 and c.id = co.coupon_id and cu.id = co.c_user_id