|
|
@@ -150,13 +150,14 @@ public class RoleServiceImpl extends SuperService {
|
|
|
if (ObjectUtils.isNotEmpty(codeRole) && !codeRole.getId().equals(role.getId())) {
|
|
|
return ResultContent.buildFail(String.format("角色编码已存在:%s", param.getCode()));
|
|
|
}
|
|
|
+ // 更新权限中心的角色组信息
|
|
|
com.github.microservice.auth.client.content.ResultContent<RoleGroupModel> resultContent = roleService.getRoleGroup(role.getRoleGroupId());
|
|
|
if (resultContent.getState() == ResultState.Success) {
|
|
|
RoleGroupModel roleGroupModel = resultContent.getContent();
|
|
|
roleGroupModel.setName(param.getName());
|
|
|
roleService.updateRoleGroup(roleGroupModel);
|
|
|
}
|
|
|
-
|
|
|
+ // 更新权限中心角色信息
|
|
|
if (StringUtils.isNotEmpty(role.getRoleId())) {
|
|
|
com.github.microservice.auth.client.content.ResultContent<com.github.microservice.auth.client.model.RoleModel> roleModelResultContent = roleService.getRole(role.getRoleId());
|
|
|
if (roleModelResultContent.getState() == ResultState.Success) {
|