导出权限校验修改
This commit is contained in:
parent
840752485b
commit
025c66415f
|
|
@ -151,6 +151,15 @@ public class PermissionServiceImpl implements PermissionService {
|
|||
.in(RolePermission::getRoleId, roleIds);
|
||||
long count = rolePermissionMapper.selectCount(queryWrapper);
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue