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 c380c7a10..7bbf81fc6 100644 --- a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml +++ b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml @@ -271,7 +271,7 @@ dist.distribution_level_name AS levelName, invite.distribution_shops AS distributionShops FROM tb_shop_user invite - left join mk_distribution_user dist on u.id = dist.id and dist.shop_id = #{shopId} + left join mk_distribution_user dist on invite.id = dist.id and dist.shop_id = #{shopId} WHERE invite.`parent_user_id` = #{distributionUserId} and dist.distribution_level_id = #{distributionLevelId} and invite.id = #{shopUserId}