From c86c704b2d532ff1e707156e757d412512d841c1 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Tue, 2 Jul 2024 11:27:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E4=BD=9C=E4=B8=9A-=E5=B7=A5=E5=8D=95=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E8=8A=82=E7=82=B9=E5=8F=91=E8=B5=B7=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=EF=BC=8C=E7=94=A8=E6=88=B7=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=98=A0=E5=B0=84=E5=88=B0=E7=94=A8=E6=88=B7=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E7=B1=BB=E5=9E=8B=E4=BD=9C=E4=B8=9A=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1184089804079104]自动化作业-工单自动化节点发起作业,用户选择组件映射到用户选择器类型作业参数异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1184089804079104 --- .../stephandler/component/AutoexecProcessComponent.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 47be64c6..0f74417f 100644 --- a/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java +++ b/src/main/java/neatlogic/module/autoexec/stephandler/component/AutoexecProcessComponent.java @@ -879,6 +879,15 @@ public class AutoexecProcessComponent extends ProcessStepHandlerBase { } else if (attributeDataVo.getDataObj() instanceof JSONArray) { param.put(key, convertDateType(type, JSONObject.toJSONString(attributeDataVo.getDataObj()))); } + } else if (Objects.equals(attributeDataVo.getHandler(), neatlogic.framework.form.constvalue.FormHandler.FORMUSERSELECT.getHandler()) && Objects.equals(type, ParamType.USERSELECT.getValue())) { + Object dataObj = attributeDataVo.getDataObj(); + if (dataObj instanceof JSONArray) { + param.put(key, dataObj); + } else { + JSONArray array = new JSONArray(); + array.add(dataObj); + param.put(key, array); + } } else { param.put(key, attributeDataVo.getDataObj()); } -- Gitee