From 933144660c539074925600864776b9350eefd8e4 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 17 Jun 2024 15:29:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E8=BF=87=E7=A8=8B=E4=B8=AD=E6=8C=87=E6=B4=BE?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #[1181010916507648]后端-工单过程中指派逻辑优化 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1181010916507648 --- .../process/util/ProcessConfigUtil.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/neatlogic/framework/process/util/ProcessConfigUtil.java b/src/main/java/neatlogic/framework/process/util/ProcessConfigUtil.java index 4b1e4c3a..0e1d7d54 100644 --- a/src/main/java/neatlogic/framework/process/util/ProcessConfigUtil.java +++ b/src/main/java/neatlogic/framework/process/util/ProcessConfigUtil.java @@ -317,6 +317,7 @@ public class ProcessConfigUtil { JSONObject config = new JSONObject(); config.put("isRequired", 0); config.put("processStepUuidList", new JSONArray()); + config.put("processStepList", new JSONArray()); config.put("rangeList", new JSONArray()); config.put("groupList", new JSONArray()); policyObj.put("config", config); @@ -396,6 +397,21 @@ public class ProcessConfigUtil { if (CollectionUtils.isNotEmpty(processStepUuidList)) { configObject.put("processStepUuidList", processStepUuidList); } + JSONArray processStepArray = configObj.getJSONArray("processStepList"); + if (CollectionUtils.isNotEmpty(processStepArray)) { + JSONArray processStepList = new JSONArray(); + for (int j = 0; j < processStepArray.size(); j++) { + JSONObject processStepObj = processStepArray.getJSONObject(j); + if (MapUtils.isEmpty(processStepObj)) { + continue; + } + if (StringUtils.isBlank(processStepObj.getString("uuid"))) { + continue; + } + processStepList.add(processStepObj); + } + configObject.put("processStepList", processStepList); + } JSONArray rangeList = configObj.getJSONArray("rangeList"); if (CollectionUtils.isNotEmpty(rangeList)) { configObject.put("rangeList", rangeList); -- Gitee