Commit aa03019a by chenweisong

用户控制器更新

parent 3bb57e2e
...@@ -58,7 +58,7 @@ public class UserController { ...@@ -58,7 +58,7 @@ public class UserController {
TwinkleValidator.notNull(scope, "所选范围不存在"); TwinkleValidator.notNull(scope, "所选范围不存在");
User user = userService.findById(userId); User user = userService.findById(userId);
TwinkleValidator.notNull(user, "所选用户不存在"); TwinkleValidator.notNull(user, "所选用户不存在");
TwinkleValidator.isTrue(scope.getGroup().getId() == user.getGroup().getId(), "所选用户与所选范围不属于一机构"); TwinkleValidator.isTrue(scope.getGroup().getId() == user.getGroup().getId(), "所选用户与所选范围不属于一机构");
scope.setUser(user); scope.setUser(user);
recordScopeService.update(scope); recordScopeService.update(scope);
return ApiResponse.ok(); return ApiResponse.ok();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment