feat:(REQ-2227) 修改角色分组查询的bug

This commit is contained in:
lilong 2024-04-23 20:04:01 +08:00
parent 344d032f9b
commit ac9b6a31aa

View File

@ -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);