diff --git a/mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml index 8af0fe133..947e5ed01 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml @@ -95,7 +95,8 @@ left join wx_shop s on ms.shop_id = s.id left join wx_mall_building mb on s.building = mb.id left join wx_mall_floor mf on s.floor = mf.id - where cm.product_id = #{productId} + where cm.status = 0 + and cm.product_id = #{productId} @@ -113,7 +114,8 @@ from wx_coupon_merchant cm left join wx_merchant m on m.id = cm.merchant_id - where cm.product_id = #{productId} + where cm.status = 0 + and cm.product_id = #{productId}