From 41a3639e2c583735ea15b5cb899446c152dfcc72 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Thu, 8 May 2025 19:19:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-itsm?= =?UTF-8?q?=E6=B5=81=E7=A8=8B-=E8=87=AA=E5=8A=A8=E5=8C=96=E8=8A=82?= =?UTF-8?q?=E7=82=B9&=E5=A4=96=E9=83=A8=E8=B0=83=E7=94=A8=E8=8A=82?= =?UTF-8?q?=E7=82=B9=20=E5=8F=82=E6=95=B0=E6=98=A0=E5=B0=84=E4=B8=8D?= =?UTF-8?q?=E5=81=9A=E8=A1=A8=E5=8D=95=E7=B1=BB=E5=9E=8B=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1416779639783424]后端-itsm流程-自动化节点&外部调用节点 参数映射不做表单类型限制 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1416779639783424 --- .../OsSoftwareServiceEnvAppModuleAppSystemVo.java | 2 +- .../script/paramtype/ScriptParamTypeBase.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java index 0ef94cb3..31b4e8c4 100644 --- a/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java +++ b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java @@ -21,7 +21,7 @@ import neatlogic.framework.cmdb.annotation.ResourceField; import neatlogic.framework.cmdb.annotation.ResourceType; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.restful.annotation.EntityField; -@ResourceType(name = "scence_os_softwareservice_env_appmodule_appsystem", label = "操作系统与软件服务、环境、模块及应用场景", moduleId= "autoexec", functionPathList = {"配置管理/应用清单"}) +@ResourceType(name = "scence_os_softwareservice_env_appmodule_appsystem", label = "操作系统与软件服务、环境、模块及应用场景", moduleId= "autoexec") public class OsSoftwareServiceEnvAppModuleAppSystemVo { @EntityField(name = "ID", type = ApiParamType.LONG) @ResourceField(name = "id") diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java index c8bf04d6..af0da954 100755 --- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java +++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java @@ -88,6 +88,21 @@ public abstract class ScriptParamTypeBase implements IScriptParamType{ return value; } + protected String getString(JSONArray jsonArray) { + if (jsonArray.size() > 1) { + return jsonArray.toJSONString(); + } else if (jsonArray.size() == 1) { + Object obj = jsonArray.get(0); + if (obj instanceof JSONObject || obj instanceof JSONArray) { + return JSONObject.toJSONString(obj); + } else { + return obj.toString(); + } + } else { + return null; + } + } + protected List getStringList(JSONArray jsonArray) { List resultList = new ArrayList<>(); for (Object obj : jsonArray) { -- Gitee