From e4bf4617f399f35f144542490c7561208b33b5ef Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Thu, 3 Aug 2023 14:45:06 +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=A0=E5=B2=97=E4=BD=8D=E5=92=8C=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/web/ProcessPublishWeb.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 916ad9e0..7afb9565 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 @@ -4626,6 +4626,24 @@ public class ProcessPublishWeb extends ActionWeb { 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 SHAPETEXT = '" + shape.getString("text") + "'"); + 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 SHAPETEXT = '" + shape.getString("text") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("ROLE_NAME", role); + } }); } }