From 45aaf7b1255e090711f7e74e370d5185a808e129 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Sun, 24 Jul 2022 21:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E5=BB=BA=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=96=87=E4=BB=B6=E5=B1=9E=E6=80=A7=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/web/CoeProcessLevelWeb.java | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index 11353e77..f619efaf 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -8335,6 +8335,23 @@ public class CoeProcessLevelWeb extends ActionWeb { return ro.toString(); } + + // 复制文件属性 + private void updateFileProperty(String oldUuid, String newUuid) { + PALRepositoryPropertyDao repositoryPropertyDao = new PALRepositoryPropertyDao(); + List oldPropertyList = repositoryPropertyDao.getPropertysByPlid(oldUuid, ""); + List newPropertyList = new ArrayList(); + if (oldPropertyList != null && oldPropertyList.size() > 0) { + for (PALRepositoryPropertyModel propertyModel : oldPropertyList) { + propertyModel.setPlId(newUuid); + propertyModel.setId(UUIDGener.getUUID()); + newPropertyList.add(propertyModel); + } + } + repositoryPropertyDao.batchInsert(newPropertyList); + } + + /** * 创建角色/绩效/表单模型 * @return @@ -8453,8 +8470,10 @@ public class CoeProcessLevelWeb extends ActionWeb { /************************************************文件属性*********************************************************/ - //图形的数据属性配置 - List attrLists=PALRepositoryAPIManager.getInstance().getValidAndUseAttributeModels(wsId, methodId); + + //复制文件属性 + updateFileProperty(uuid,model.getId()); + shapes.add(shape); JSONArray newShapes = this.getMethodElementsJSONArray(shapes, 1); JSONObject newElements = new JSONObject(); @@ -8484,6 +8503,9 @@ public class CoeProcessLevelWeb extends ActionWeb { } + + + /** * 创建具有合理位置的节点数据 *