From a4b4e7e64b108cf91a483eec25e025eac8c33f1e Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 13 Dec 2018 19:06:51 +0800 Subject: [PATCH] =?UTF-8?q?[A=E7=AB=AF][=E4=BF=AE=E5=A4=8D]:=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=95=86=E6=88=B7=E5=88=97=E8=A1=A8=E6=97=B6=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=90=88=E9=80=82=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxCouponMerchantMapper.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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}