处理制度创建~~自动创建是没有制度图形的情况

This commit is contained in:
chengli 2022-07-12 12:00:54 +08:00
parent efe58c3b5b
commit 03f0114f75
2 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class WordUtilXWPF {
elements.put(shapefirst.getString("id"), shapefirst);
XWPFDocument doc = new XWPFDocument(inputStream);
JSONArray onlinedata = new JSONArray();
if (shapefirst == null) {
if (shapefirst == null || shapefirst.size() == 0) {
JSONObject shapeze = ShapeUtil.getProcessShapeDefinitionByName("control.policy", "regulation");
String shapeIdz = UUIDGener.getObjectId();
shapeze.put("text", name);//不生效