Merge branch 'develop' of http://139.196.179.195:3000/chenxudong/electromagnetic-data-new into develop
This commit is contained in:
commit
ec75439749
|
|
@ -150,7 +150,16 @@ public class PermissionServiceImpl implements PermissionService {
|
|||
.eq(RolePermission::getPermissionCode, FilePermission.EXPORT.getCode())
|
||||
.in(RolePermission::getRoleId, roleIds);
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue