pal 手册获取表单图与制度图特殊处理

This commit is contained in:
anhc 2022-07-18 18:17:20 +08:00
parent bbe0305cee
commit 59fe81184d
2 changed files with 14 additions and 3 deletions

View File

@ -1498,10 +1498,21 @@ public class PALRepositoryQueryAPIManager {
List<String> categorys = PALMethodCache.getPalMehtodList(teamId, context.getUID(), isUsed, isPublished, true);
int i = 1;
for (String category : categorys) {
if (methods != null && !"".equals(methods)) {
if (methods.indexOf(category) == -1) {
if (methods != null && !"".equals(methods) ) {
if (methods.indexOf(category) == -1 ) {
//制度图与表单图特殊处理
if ("data.form".equals(methods)){
if (!category.equals("process")){
continue;
}
} else if ("control.policy".equals(methods)){
if (!category.equals("process")){
continue;
}
} else {
continue;
}
}
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("id", category);