he2802 3 anni fa
parent
commit
3f3fbfcac9

+ 5 - 1
zhongzheng-common/pom.xml

@@ -125,7 +125,11 @@
             <artifactId>poi-ooxml-schemas</artifactId>
             <version>4.1.0</version>
         </dependency>
-    
+        <dependency>
+            <groupId>e-iceblue</groupId>
+            <artifactId>spire.doc.free</artifactId>
+            <version>3.9.0</version>
+        </dependency>
 
             <!-- yml解析器 -->
         <dependency>

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/QuestionServiceImpl.java

@@ -363,12 +363,12 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
                 wordExtractor.close();*/
             } else if (path.endsWith("docx")) {
                String htmlContent = "";
-                InputStream in = file.getInputStream();
+               /* InputStream in = file.getInputStream();
 
                 Document docF = new Document();
                 docF.loadFromStream(in,FileFormat.Docx);
                 docF.saveToFile("D:/wordtohtml.html", FileFormat.Html);
-                docF.dispose();
+                docF.dispose();*/
 
 
                 InputStream is = file.getInputStream();