From 848d23148fcf3ef42b6d014e799f893e86b3fd8c Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Wed, 29 Oct 2025 16:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=BC=80=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/MkDistributionUserMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ae4565528..62ec684cf 100644 --- a/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml +++ b/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml @@ -44,8 +44,8 @@ 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 = #{userId} AND du.is_del = 0 LEFT JOIN tb_shop_user shu ON shop.id IN (shu.main_shop_id, shu.source_shop_id) AND shu.user_id = #{userId} - LEFT JOIN tb_order_info ord ON shop.id = ord.shop_id AND ord.user_id = #{userId} - AND ord.STATUS = 'done' + LEFT JOIN tb_order_info ord ON shop.id = ord.shop_id AND ord.user_id = #{userId} AND ord.STATUS = 'done' + where du.id IS NULL GROUP BY shop.id