From 30f35128fd6722e50a4a5722d00f5c08383ee128 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Mon, 27 Oct 2025 19:03:47 +0800 Subject: [PATCH] =?UTF-8?q?shopUser=E5=85=B3=E8=81=94shopId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/MkDistributionUserMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml b/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml index c224f10d..a9ea70fd 100644 --- a/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml +++ b/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml @@ -29,7 +29,7 @@ FROM tb_shop_info shop inner JOIN mk_distribution_config config ON shop.id = config.shop_id LEFT JOIN mk_distribution_user du ON shop.id = du.shop_id AND du.user_id = #{user_id} AND du.is_del = 0 - LEFT JOIN tb_shop_user shu ON shop.id = shu.shop_id AND shu.user_id = #{user_id} + LEFT JOIN tb_shop_user shu ON shop.id IN (shu.main_shop_id, shu.source_shop_id) AND shu.user_id = #{user_id} LEFT JOIN tb_order_info ord ON shop.id = ord.shop_id AND ord.user_id = #{user_id} AND ord.STATUS = 'done' GROUP BY shop.id