制度导入无第一个节点代码

This commit is contained in:
chengli 2022-07-13 22:11:36 +08:00
parent 78abeadb94
commit dbbd375ed8
2 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,6 @@ public class WordUtilXWPF {
try {
//file = new File(filePath);
elements.clear();
elements.put(shapefirst.getString("id"), shapefirst);
XWPFDocument doc = new XWPFDocument(inputStream);
JSONArray onlinedata = new JSONArray();
if (shapefirst == null || shapefirst.size() == 0) {
@ -145,6 +144,7 @@ public class WordUtilXWPF {
shapeze.put("p", 0);
onlinedata.add(shapeze);
} else {
elements.put(shapefirst.getString("id"), shapefirst);
shapefirst.put("next", true);
shapefirst.put("p", 0);
onlinedata.add(shapefirst);