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}