From 646cf5e4b0b5241f000e6d0f83547aad44cb0761 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 5 Jan 2023 01:23:38 +0800 Subject: [PATCH] fix bug --- .../src/main/resources/mapper/WxOrderGroupMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml b/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml index 4ff25264f..a42d2dac4 100644 --- a/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml @@ -137,7 +137,7 @@ left join (SELECT count(*) total_people, product_id FROM ( SELECT * from wx_order${tenantEntity.shardTableSuffix} ) wx_order WHERE order_group_id != 0 group by product_id ) o2 on o2.product_id = c.id - WHERE type = 9 + WHERE c.type = 9 and c.`tenant_id` = #{marketing.tenantId} @@ -145,11 +145,11 @@ and c.`parent_tenant_id` = #{marketing.parentTenantId} - and c.coupon_id=#{marketing.couponId} + and c.id=#{marketing.couponId} - and c.coupon_id in + and c.id in #{cidItem}