应对多窗口打开场景,更新画布时,首节点ID不变

This commit is contained in:
yujh 2025-02-13 17:31:28 +08:00
parent 64af5a88a6
commit f40fff07f3

View File

@ -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");// 位置大小