fix: 报告生成器流程树,只保留已发布数据
This commit is contained in:
parent
e3ecf998db
commit
16b911a9d8
Binary file not shown.
@ -429,25 +429,12 @@ public class OutPutReportWeb extends ActionWeb {
|
|||||||
public String PALFileJsonDataRootTreeData(String methodType, String wsid, String versionType, String teamId) {
|
public String PALFileJsonDataRootTreeData(String methodType, String wsid, String versionType, String teamId) {
|
||||||
JSONArray jsonArr = null;
|
JSONArray jsonArr = null;
|
||||||
//if (teamId == null || "".equals(teamId)) {
|
//if (teamId == null || "".equals(teamId)) {
|
||||||
|
versionType = "isPublished";
|
||||||
if (teamId == null) {
|
if (teamId == null) {
|
||||||
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPalRepositoryTreeData(_uc, wsid, methodType, versionType);
|
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPalRepositoryTreeData(_uc, wsid, methodType, versionType);
|
||||||
} else {
|
} else {
|
||||||
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPermPalRepositoryTreeDataByMethods(_uc, wsid, teamId, versionType, methodType);
|
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPermPalRepositoryTreeDataByMethods(_uc, wsid, teamId, versionType, methodType);
|
||||||
}
|
}
|
||||||
// 过滤掉已经停用的
|
|
||||||
if (CollectionUtils.isNotEmpty(jsonArr)) {
|
|
||||||
JSONArray filteredJsonArr = new JSONArray();
|
|
||||||
for (Object obj : jsonArr) {
|
|
||||||
if (obj instanceof JSONObject) {
|
|
||||||
JSONObject jsonObject = (JSONObject) obj;
|
|
||||||
if (jsonObject != null && !jsonObject.getBooleanValue("isStop")) {
|
|
||||||
filteredJsonArr.add(jsonObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
jsonArr = filteredJsonArr;
|
|
||||||
}
|
|
||||||
|
|
||||||
return jsonArr.toString();
|
return jsonArr.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user