From 4e911fc60a932e720d1547026fa20f0d9f594970 Mon Sep 17 00:00:00 2001 From: yujh Date: Mon, 6 Jan 2025 12:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=A7=A3=E5=86=B3=EF=BC=8C?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E8=AF=B4=E6=98=8E=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E5=9E=8B=E9=97=AE=E9=A2=98=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coe/pal/output/pr/report1/Report1Gener.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java b/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java index a2ee1bce..cad8ef11 100644 --- a/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java +++ b/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java @@ -395,9 +395,21 @@ public class Report1Gener { int regulateIndex = 1;// 控制序号 // 输出结果 for (Map shape : repositoryFileElements) { - if ("method_approval_node,method_service_node,method_approval_node3,method_service_node4,decision,sub_process_node".indexOf((String)shape.get("type")) == -1) { + //优化此处代码逻辑,备注process和子流程sub_process_node冲突了 + String type = shape.get("type").toString(); + Set typeList = new HashSet<>(); + typeList.add("method_approval_node"); + typeList.add("method_service_node"); + typeList.add("method_approval_node3"); + typeList.add("method_service_node4"); + typeList.add("decision"); + typeList.add("sub_process_node"); + if(!typeList.contains(type)){ continue; } + /*if ("method_approval_node,method_service_node,method_approval_node3,method_service_node4,decision,sub_process_node".indexOf((String)shape.get("type")) == -1) { + continue; + }*/ JSONObject _tr = new JSONObject(); JSONObject _roleMappingPostTr = new JSONObject(); JSONObject _criticalControlPointTr = new JSONObject();