下级佣金不可大于渠道商佣金

This commit is contained in:
2024-12-17 15:58:49 +08:00
parent 982e79d268
commit 48be3106b8

View File

@@ -174,6 +174,9 @@ public class UserController {
if (sysUserEntity == null) {
return Result.error("渠道码不正确!");
}
if (sysUserEntity.getQdRate().compareTo(userEntity.getRate()) < 0 || sysUserEntity.getQdRate().compareTo(userEntity.getTwoRate()) < 0 ) {
return Result.error("下级佣金不可大于渠道商佣金");
}
}
userService.updateById(userEntity);
return Result.success();
@@ -415,5 +418,4 @@ public class UserController {
}
}