|
|
@ -107,7 +107,7 @@ public class RoleController { |
|
|
|
public ResponseResult updateUserRole(@RequestBody UserRoleVO userRoleVO){ |
|
|
|
public ResponseResult updateUserRole(@RequestBody UserRoleVO userRoleVO){ |
|
|
|
List<String> userIds = userRoleVO.getUserIds(); |
|
|
|
List<String> userIds = userRoleVO.getUserIds(); |
|
|
|
if (userIds.size()==0){ |
|
|
|
if (userIds.size()==0){ |
|
|
|
return ResponseResult.FAIL(20000,"不能不选择用户"); |
|
|
|
return ResponseResult.FAIL(20000,"请至少选择一个用户!"); |
|
|
|
} |
|
|
|
} |
|
|
|
boolean save = roleService.saveUserRole(userRoleVO); |
|
|
|
boolean save = roleService.saveUserRole(userRoleVO); |
|
|
|
return ResponseResult.SUCCESS(save); |
|
|
|
return ResponseResult.SUCCESS(save); |
|
|
|