|
@@ -175,6 +175,7 @@ public class ImportPaperService {
|
|
// 深拷贝临时pkg与最终写入数据库pkg
|
|
// 深拷贝临时pkg与最终写入数据库pkg
|
|
tmpWordMlPackage = DocxProcessUtil.getTmpPackage(wordMLPackage);
|
|
tmpWordMlPackage = DocxProcessUtil.getTmpPackage(wordMLPackage);
|
|
writePkg = DocxProcessUtil.getTmpPackage(wordMLPackage);
|
|
writePkg = DocxProcessUtil.getTmpPackage(wordMLPackage);
|
|
|
|
+ byte[] writeByte = DocxProcessUtil.getPkgByte(writePkg);
|
|
|
|
|
|
// 获取word文档中所有段落
|
|
// 获取word文档中所有段落
|
|
List<Object> pList = DocxProcessUtil.getAllElementFromObject(wordMLPackage.getMainDocumentPart(), P.class);
|
|
List<Object> pList = DocxProcessUtil.getAllElementFromObject(wordMLPackage.getMainDocumentPart(), P.class);
|
|
@@ -269,7 +270,8 @@ public class ImportPaperService {
|
|
importPaperCheck, tmpWordMlPackage, false);
|
|
importPaperCheck, tmpWordMlPackage, false);
|
|
}
|
|
}
|
|
// 设置WordMlPackage二进制数据
|
|
// 设置WordMlPackage二进制数据
|
|
- setPkgByte(question, writePkg);
|
|
|
|
|
|
+// setPkgByte(question, writePkg);
|
|
|
|
+ question.setQuesPkg(writeByte);
|
|
// 设置question与Unit集合数据
|
|
// 设置question与Unit集合数据
|
|
question.setCourseNo(paper.getCourseNo());
|
|
question.setCourseNo(paper.getCourseNo());
|
|
question.setCourseName(paper.getCourseName());
|
|
question.setCourseName(paper.getCourseName());
|
|
@@ -294,6 +296,7 @@ public class ImportPaperService {
|
|
wordMLPackage = null;
|
|
wordMLPackage = null;
|
|
tmpWordMlPackage = null;
|
|
tmpWordMlPackage = null;
|
|
writePkg = null;
|
|
writePkg = null;
|
|
|
|
+ writeByte = null;
|
|
FileUtils.deleteQuietly(file);
|
|
FileUtils.deleteQuietly(file);
|
|
msgMap.put("msg", importPaperCheck.errorInfo);
|
|
msgMap.put("msg", importPaperCheck.errorInfo);
|
|
msgMap.put("paper", paper);
|
|
msgMap.put("paper", paper);
|