From f5f8cae9b8c4a4940734cc6046bbf28d615a6d90 Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Wed, 23 Aug 2023 18:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E6=B8=85=E5=8D=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/publisher/ViewRefishBeforeEvent.java | 27 +++++++++++++++++++ .../client/web/ProcessPublishWeb.java | 26 ++++++++++++++---- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java index 797c2d94..0a354ab0 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java @@ -111,6 +111,33 @@ public class ViewRefishBeforeEvent implements DataWindowBeforeLoadEventInterface if (shapeAttr.get("key").equals("activity_description")) { bo.set("EXTDESC", shapeAttr.getString("value")); } + if (shapeAttr.get("key").equals("post")) { + String post = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + post+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("POST_NAME",post ); + } + if (shapeAttr.get("key").equals("role")) { + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("ROLE_NAME", role); + } + if (shapeAttr.get("key").equals("information_systems")){ + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'information_systems' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("IT_SYSTEM", role); + } }); } } diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index 7afb9565..4b61122d 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -4575,9 +4575,15 @@ public class ProcessPublishWeb extends ActionWeb { System.out.println("执行了吧"); SDK.getBOAPI().removeByBindId("BO_ACT_PAL_PROCESS_MANIFEST",rowMap.getString("BINDID")); } - SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bos, processInst, _uc); + for (BO bo: + bos) { + SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bo, processInst, _uc); + } } else { - SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bos, processInst, _uc); + for (BO bo: + bos) { + SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bo, processInst, _uc); + } } return ro.toString(); } @@ -4603,6 +4609,7 @@ public class ProcessPublishWeb extends ActionWeb { for (int i = 0; i < processLevel.size(); i++) { bo.set("L" + (i + 1), processLevel.get(i).getString("PROPERTYVALUE")); } + SDK.getLogAPI().consoleInfo("活动树形ID>>>>>>>>"+shape.getString("id")); if (shape.containsKey("dataAttributes")) { JSONArray dataAttributes = shape.getJSONArray("dataAttributes"); if (dataAttributes.size() > 0) { @@ -4628,22 +4635,31 @@ public class ProcessPublishWeb extends ActionWeb { } if (shapeAttr.get("key").equals("post")) { String post = ""; - List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPETEXT = '" + shape.getString("text") + "'"); + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPEID = '" + shape.getString("id") + "'"); for (RowMap rowmaps: - text) { + text) { post+=rowmaps.getString("RELATIONSHAPETEXT")+","; } bo.set("POST_NAME",post ); } if (shapeAttr.get("key").equals("role")) { String role = ""; - List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPETEXT = '" + shape.getString("text") + "'"); + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPEID = '" + shape.getString("id") + "'"); for (RowMap rowmaps: text) { role+=rowmaps.getString("RELATIONSHAPETEXT")+","; } bo.set("ROLE_NAME", role); } + if (shapeAttr.get("key").equals("information_systems")){ + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'information_systems' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("IT_SYSTEM", role); + } }); } }