Commit 61b99091 authored by hezhuozhi's avatar hezhuozhi

【web端-系统配置】管理员置换出去编辑人员后再置换回来,登录显示空角色

parent 98e6aa04
...@@ -221,6 +221,14 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD ...@@ -221,6 +221,14 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
throw new BadRequest("角色只能增加, 不能删除"); throw new BadRequest("角色只能增加, 不能删除");
} }
} }
//去掉空角色
List<Long> role = userDataZHDto.getRole();
if(CollectionUtil.isNotEmpty(role)){
if(role.contains(userGroupempty)){
logger.info("移除空角色");
role.remove(userGroupempty);
}
}
// 1 修改平台用户 // 1 修改平台用户
List<RoleModel> userRoleList = new ArrayList<>(); List<RoleModel> userRoleList = new ArrayList<>();
AgencyUserModel agencyUserModel = new AgencyUserModel(); AgencyUserModel agencyUserModel = new AgencyUserModel();
......
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