修复:关联目录或文件时,子级目录和数据没有关联上的问题

master
Guo XIn 1 year ago
parent d68ce21926
commit abd3029311
  1. 7
      shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirectoryTreeService.java

@ -63,6 +63,13 @@ public class DirectoryTreeService {
Set<String> permisDis = "write".equals(permis) ? dirPermissionService.getByWritePermis(user) : dirPermissionService.getByReadPermis(user);
// 判断权限范围
List<DirectoryVo> permisDirectoryList = StreamUtil.as(directoryList).filter(dir -> {
if (dir.getDirectoryType() == DirectoryType.FILE
|| dir.getDirectoryType() == DirectoryType.LINK_FILE
|| dir.getDirectoryType() == DirectoryType.METADATA
|| dir.getDirectoryType() == DirectoryType.LINK_METADATA) {
return true;
}
if (dir.getReviewStatus() == status || status == null) {
boolean permisAllow = permisDis.contains(dir.getId());
if (permisAllow) {