分销修改

This commit is contained in:
张松
2025-10-29 18:20:01 +08:00
parent 306e14b299
commit 5e99bd272c

View File

@@ -564,8 +564,8 @@ public class MkDistributionUserServiceImpl extends ServiceImpl<MkDistributionUse
AssertUtil.isTrue(distributionUser.getStatus() != 1, "分销员未开启");
// 上上级分销员
if (distributionUser.getParentId() != null) {
MkDistributionUser parent = getOne(new QueryWrapper().eq(MkDistributionUser::getId, distributionUser.getParentId()));
if (sourceShopUser.getDistributionUserParentId() != null) {
MkDistributionUser parent = getOne(new QueryWrapper().eq(MkDistributionUser::getId, sourceShopUser.getDistributionUserParentId()));
if (parent == null) {
return;