diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index aff12959f..6655b24d0 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -1017,7 +1017,7 @@ left join wx_coupon_merchant wcm on co.coupon_id = wcm.product_id and wcm.merchant_id = #{merchantId} LEFT JOIN wx_c_user_basic_info cu ON cu.id=co.c_user_id LEFT JOIN wx_coupon c ON c.id = co.coupon_id - where 1=1 + where wcm.merchant_id = #{merchantId} and co.coupon_type = #{couponType}