From f40fff07f3175730bbdbdb445d0604366e60cd50 Mon Sep 17 00:00:00 2001 From: yujh Date: Thu, 13 Feb 2025 17:31:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E5=AF=B9=E5=A4=9A=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=9C=BA=E6=99=AF=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E6=97=B6=EF=BC=8C=E9=A6=96=E8=8A=82=E7=82=B9?= =?UTF-8?q?ID=E4=B8=8D=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coe/pal/datamigration/util/readword/WordUtilXWPF.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF.java index 518292ac..08d9eacb 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF.java @@ -10,6 +10,7 @@ import java.nio.charset.StandardCharsets; import java.sql.Timestamp; import java.util.*; +import com.actionsoft.bpms.util.UtilString; import com.sini.com.spire.doc.Document; import com.sini.com.spire.doc.FileFormat; import org.apache.poi.hwpf.usermodel.Paragraph; @@ -160,8 +161,13 @@ public class WordUtilXWPF { }else{ shapeze = ShapeUtil.getProcessShapeDefinitionByName("control.policy", "I/O_L4"); } + String shapeIdz ; + if(null != shapefirst && UtilString.isNotEmpty(shapefirst.getString("id"))){ + shapeIdz = shapefirst.getString("id"); + }else{ + shapeIdz = UUIDGener.getObjectId(); + } - String shapeIdz = UUIDGener.getObjectId(); shapeze.put("text", name);// 不生效 shapeze.put("level", 0); JSONObject props1 = shapeze.getJSONObject("props");// 位置大小