修改已知问题。
This commit is contained in:
parent
959433bbe7
commit
10439890d5
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,5 +24,4 @@ public enum DataOwnEnum {
|
|||
return code == SYS_FILE.code || code == USER_FILE.code || code == REPO_FILE.code;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue