报告生成器查询架构文件夹代码优化
This commit is contained in:
parent
f00ddaaf5d
commit
ad90c06acb
Binary file not shown.
@ -1516,15 +1516,13 @@ public class PALRepositoryQueryAPIManager {
|
||||
}
|
||||
}
|
||||
|
||||
if(!methods.contains(model.getMethodId()) || depflag==false){
|
||||
if(!model.isPublish()){
|
||||
if(!methods.contains(model.getMethodId()) || depflag==false || !model.isPublish()){
|
||||
removeList.add(model);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
list.removeAll(removeList);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@ -1653,7 +1651,6 @@ public class PALRepositoryQueryAPIManager {
|
||||
}
|
||||
modelList = tempList;
|
||||
}
|
||||
|
||||
if (onlyPublish){
|
||||
List<PALRepositoryModel> modelList2 = new ArrayList<PALRepositoryModel>();
|
||||
for (PALRepositoryModel repositoryModel : modelList) {
|
||||
@ -1672,7 +1669,6 @@ public class PALRepositoryQueryAPIManager {
|
||||
}
|
||||
modelList = modelList2;
|
||||
}
|
||||
|
||||
List<PALRepositoryModel> newList = setNewPid(modelList);
|
||||
Collections.sort(newList, new Comparator1());
|
||||
|
||||
@ -2256,13 +2252,16 @@ public class PALRepositoryQueryAPIManager {
|
||||
List<PALRepositoryModel> modelList2 = new ArrayList<PALRepositoryModel>();
|
||||
for (PALRepositoryModel repositoryModel : list) {
|
||||
if ("process.framework".equals(repositoryModel.getMethodId()) || "default".equals(repositoryModel.getMethodId())){
|
||||
// 判断文件夹及所有子级下是否存在已发布模型
|
||||
List<PALRepositoryModel> children = new ArrayList<>();
|
||||
getAllPublishedPalRepositoryModelsByPidDep(wsId, repositoryModel.getId(), children,methods,departId,tempOrgList);
|
||||
if (children.size() > 0){
|
||||
modelList2.add(repositoryModel);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 判断文件夹及所有子级下是否存在已发布模型
|
||||
List<PALRepositoryModel> children = new ArrayList<>();
|
||||
getAllPublishedPalRepositoryModelsByPidDep(wsId, repositoryModel.getId(), children,methods,departId,tempOrgList);
|
||||
if (children.size() > 0){
|
||||
modelList2.add(repositoryModel);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
if (repositoryModel.isPublish()){
|
||||
@ -2271,6 +2270,7 @@ public class PALRepositoryQueryAPIManager {
|
||||
}
|
||||
list = modelList2;
|
||||
}
|
||||
|
||||
Collections.sort(list, new Comparator1()); // 按级别排序
|
||||
List<PALRepositoryModel> newList = setNewPid(list);
|
||||
|
||||
|
||||
@ -1625,10 +1625,10 @@ public class CoeProcessLevelUtil {
|
||||
if (list != null) {
|
||||
for (PALRepositoryModel model : list) {
|
||||
if ((model.isUse() && model.getMethodId().equals("process.framework"))) {
|
||||
result.add(model);
|
||||
result.add(model);
|
||||
}
|
||||
if ((model.isPublish() && !model.getMethodId().equals("process.framework"))) {
|
||||
result.add(model);
|
||||
result.add(model);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1636,7 +1636,6 @@ public class CoeProcessLevelUtil {
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user