From 5f0c6ad8eceb7f1e8733fc3b394f4c331ea4f9a4 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 31 May 2024 10:53:58 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20IT=E6=9C=8D=E5=8A=A1-?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E8=8A=82=E7=82=B9=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #[1168666777845760]IT服务-自动化节点激活报错 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1168666777845760 --- .../stephandler/component/AutoexecProcessComponent.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java b/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java index 52328ff5..0c62deb0 100644 --- a/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java +++ b/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java @@ -309,8 +309,8 @@ public class AutoexecProcessComponent extends ProcessStepHandlerBase { if (CollectionUtils.isNotEmpty(formAttributeList)) { List processTaskFormAttributeDataList = processTaskCrossoverService.getProcessTaskFormAttributeDataListByProcessTaskIdAndTag(processTaskId, FORM_EXTEND_ATTRIBUTE_TAG); // 添加表格组件中的子组件到组件列表中 - List allDownwardFormAttributeList = new ArrayList<>(); for (FormAttributeVo formAttributeVo : formAttributeList) { + formAttributeMap.put(formAttributeVo.getUuid(), formAttributeVo); JSONObject componentObj = new JSONObject(); componentObj.put("handler", formAttributeVo.getHandler()); componentObj.put("uuid", formAttributeVo.getUuid()); @@ -322,11 +322,9 @@ public class AutoexecProcessComponent extends ProcessStepHandlerBase { if (Objects.equals(formAttributeVo.getUuid(), downwardFormAttribute.getUuid())) { continue; } - allDownwardFormAttributeList.add(downwardFormAttribute); + formAttributeMap.put(downwardFormAttribute.getUuid(), downwardFormAttribute); } } - formAttributeList.addAll(allDownwardFormAttributeList); - formAttributeMap = formAttributeList.stream().collect(Collectors.toMap(FormAttributeVo::getUuid, e -> e)); for (ProcessTaskFormAttributeDataVo attributeDataVo : processTaskFormAttributeDataList) { FormAttributeVo formAttributeVo = formAttributeMap.get(attributeDataVo.getAttributeUuid()); if (formAttributeVo != null) { -- Gitee