|
|
@@ -103,13 +103,15 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
if(userPo == null){ |
|
|
|
return JsonResult.error("该用户不存在!"); |
|
|
|
} |
|
|
|
|
|
|
|
ClientUserRolePo clientUserRolePo = new ClientUserRolePo() |
|
|
|
.setUserId(userPo.getId()) |
|
|
|
.setClientId(updateUserClientRoleDto.getClientId()) |
|
|
|
.setRoleId(updateUserClientRoleDto.getRoleId()); |
|
|
|
clientUserRolePo.setUpdateUser(loginUser.getUserId()); |
|
|
|
clientUserRoleMapper.updateUserClientRole(clientUserRolePo); |
|
|
|
List<ClientRoleDto> clientRoleDtoList = updateUserClientRoleDto.getClientRoleDtoList(); |
|
|
|
for(ClientRoleDto dto : clientRoleDtoList){ |
|
|
|
ClientUserRolePo clientUserRolePo = new ClientUserRolePo() |
|
|
|
.setUserId(userPo.getId()) |
|
|
|
.setClientId(dto.getClientId()) |
|
|
|
.setRoleId(dto.getRoleId()); |
|
|
|
clientUserRolePo.setUpdateUser(loginUser.getUserId()); |
|
|
|
clientUserRoleMapper.updateUserClientRole(clientUserRolePo); |
|
|
|
} |
|
|
|
return JsonResult.success(true); |
|
|
|
} |
|
|
|
|