feat:(REQ-2227) 修改角色分组查询的bug
This commit is contained in:
parent
344d032f9b
commit
ac9b6a31aa
@ -946,8 +946,6 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
|
||||
for (Map.Entry<String, SaasRoleGroup> entry : categoryMap.entrySet()) {
|
||||
SaasRoleGroup parent = entry.getValue();
|
||||
List<SaasRoleGroup> groups = groupsByCategory.getOrDefault(entry.getKey(), new ArrayList<>());
|
||||
//父级和子级
|
||||
groups.add(parent);
|
||||
List<SaasRoleGroup> children = allGroupMap.get(parent.getId());
|
||||
if (CollectionUtil.isNotEmpty(children)) {
|
||||
groups.addAll(children);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user