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