修改已知问题。

This commit is contained in:
chenxudong 2025-03-07 10:31:06 +08:00
parent 959433bbe7
commit 10439890d5
2 changed files with 9 additions and 10 deletions

View File

@ -431,15 +431,15 @@ public class CommonService {
Set<String> res = new HashSet<>();
// List<String> prjInfo = (dataOwnCode == DataOwnEnum.SYS_FILE.code) ?
// querySysPrjTree(PrjQuerySource.USER_INTERFACE.value, null, new FileProjectVO()).get(PrjQuerySource.USER_INTERFACE.value):
// queryUserPrjTree(PrjQuerySource.USER_INTERFACE.value, new FileProjectVO()).get(PrjQuerySource.USER_INTERFACE.value);
//
// prjInfo.forEach(e -> {
// FileProjectVO projectVO = JSONUtil.toList(e, FileProjectVO.class).get(0);
// Set<String> leafIds = getLeafNodes(projectVO).stream().map(FileProjectVO::getCategoryId).collect(Collectors.toSet());
// res.addAll(leafIds);
// });
List<String> prjInfo = (dataOwnCode == DataOwnEnum.SYS_FILE.code) ?
querySysPrjTree(PrjQuerySource.SYS_DB.value, null, new FileProjectVO()).get(PrjQuerySource.SYS_DB.value):
queryUserPrjTree(PrjQuerySource.USER_DB.value, new FileProjectVO()).get(PrjQuerySource.USER_DB.value);
prjInfo.forEach(e -> {
FileProjectVO projectVO = JSONUtil.toList(e, FileProjectVO.class).get(0);
Set<String> leafIds = getLeafNodes(projectVO).stream().map(FileProjectVO::getCategoryId).collect(Collectors.toSet());
res.addAll(leafIds);
});
return res;
}

View File

@ -24,5 +24,4 @@ public enum DataOwnEnum {
return code == SYS_FILE.code || code == USER_FILE.code || code == REPO_FILE.code;
}
}