From acc8f8d4f7ddd8d0257ad89d9903b054f5b4675c Mon Sep 17 00:00:00 2001 From: yujh Date: Fri, 1 Nov 2024 17:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=B2=97=E4=BD=8D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/pal/repository/designer/web/CoeDesignerWeb.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java index 3f7bbfc5..3b62392a 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java @@ -3283,9 +3283,12 @@ public class CoeDesignerWeb extends ActionWeb { relationShapes.getJSONObject(shapeId1).put(model.getAttrId(), model.getRelationShapeText()); //增加角色自动获取岗位逻辑 if(model.getAttrId().equals("role")){ - //查询该角色有没有保定岗位 - String querySql = " SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID = ? AND SHAPEID = ? AND ATTRID = ?"; - String postInfo = DBSql.getString(querySql, new Object[]{model.getRelationFileId(), model.getRelationShapeId(), "post"}); + //先查询该UUID的角色映射关系, + String querySqlRole = " SELECT RELATIONSHAPEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE SHAPEID = ? AND ATTRID = ?"; + String relationShapeId = DBSql.getString(querySqlRole, new Object[]{model.getRelationShapeId(), "role"}); + String querySql = " SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE SHAPEID = ? AND ATTRID = ?"; + String postInfo = DBSql.getString(querySql, new Object[]{relationShapeId, "post"}); + //查询该角色有没有绑定岗位 if(UtilString.isNotEmpty(postInfo)){ relationShapes.getJSONObject(shapeId1).put("post", postInfo); }