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 ffe1e4889..5f80a0a15 100644 --- a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml +++ b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml @@ -273,7 +273,7 @@ FROM mk_distribution_invite invite left join tb_shop_user u on invite.shop_user_id = u.id left join mk_distribution_user dist on invite.shop_user_id = dist.id - WHERE invite.`parent_user_id` = #{distributionUserId} + WHERE invite.`parent_user_id` = #{distributionUserId} and invite.shop_id = #{shopId} and dist.distribution_level_id = #{distributionLevelId} and invite.id = #{shopUserId} ORDER BY invite.`invite_time` DESC