From 74276228a4a905eb6697b53b4ed3503a3b4a03c8 Mon Sep 17 00:00:00 2001 From: luozukai Date: Thu, 26 Sep 2019 15:52:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9][=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=BC=93=E5=AD=98][=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxMerchantMapper.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml index 6ffe64141..a23f5229b 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml @@ -480,7 +480,11 @@ left join wx_coupon co on(o.`coupon_id`=co.id) left join wx_coupon_merchant cm on(cm.product_id=co.id) inner join wx_c_user_basic_info c on(o.c_user_id=c.id) - where o.coupon_order_status=1 and o.tenant_id=#{tenantId} order by o.create_date desc + where o.coupon_order_status=1 and o.tenant_id=#{tenantId} + + and co.`id` = #{id} + + order by o.create_date desc