应对多窗口打开场景,更新画布时,首节点ID不变
This commit is contained in:
parent
64af5a88a6
commit
f40fff07f3
@ -10,6 +10,7 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
import com.actionsoft.bpms.util.UtilString;
|
||||||
import com.sini.com.spire.doc.Document;
|
import com.sini.com.spire.doc.Document;
|
||||||
import com.sini.com.spire.doc.FileFormat;
|
import com.sini.com.spire.doc.FileFormat;
|
||||||
import org.apache.poi.hwpf.usermodel.Paragraph;
|
import org.apache.poi.hwpf.usermodel.Paragraph;
|
||||||
@ -160,8 +161,13 @@ public class WordUtilXWPF {
|
|||||||
}else{
|
}else{
|
||||||
shapeze = ShapeUtil.getProcessShapeDefinitionByName("control.policy", "I/O_L4");
|
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("text", name);// 不生效
|
||||||
shapeze.put("level", 0);
|
shapeze.put("level", 0);
|
||||||
JSONObject props1 = shapeze.getJSONObject("props");// 位置大小
|
JSONObject props1 = shapeze.getJSONObject("props");// 位置大小
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user