From de42363874b8d2a78e8216db610316bf96b5ad2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?=
<8605635+zhang3064194730@user.noreply.gitee.com>
Date: Thu, 6 Nov 2025 16:48:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=94=80=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/ShopUserMapper.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml
index d2b05527c..d98e1a490 100644
--- a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml
+++ b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml
@@ -293,7 +293,7 @@
u.distribution_shops AS distributionShops
FROM tb_shop_user_invite invite
left join tb_shop_user u on invite.shop_user_id = u.id
- left join mk_distribution_user dist on u.id = dist.id
+ left join mk_distribution_user dist on u.id = dist.id and dist.shop_id = #{shopId}
WHERE invite.`distribution_user_id` = #{distributionUserId} and invite.shop_id = #{shopId}
and dist.distribution_level_id = #{distributionLevelId}
and invite.shop_user_id = #{shopUserId}