Compare commits

...

2 Commits

1 changed files with 10 additions and 1 deletions

View File

@ -151,6 +151,15 @@ public class PermissionServiceImpl implements PermissionService {
.in(RolePermission::getRoleId, roleIds); .in(RolePermission::getRoleId, roleIds);
long count = rolePermissionMapper.selectCount(queryWrapper); long count = rolePermissionMapper.selectCount(queryWrapper);
map.put(id, count>0); map.put(id, count>0);
// 添加父节点
if ( count>0 ) {
EdFileInfo file = edFileInfoMapper.selectById(id);
String[] parentIds = file.getFilePath().split("_");
for (String parentId : parentIds) {
map.put(parentId, true);
}
}
} }
return map; return map;
} }