Commit 33271a26 authored by linjian's avatar linjian

合同导出修改依赖

parent 9bc0af23
......@@ -22,18 +22,6 @@
<groupId>com.yundong.idaas</groupId>
<artifactId>yundong-third-facade</artifactId>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId>
<version>4.0.0</version>
<exclusions>
<exclusion>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.yundong.idaas</groupId>
<artifactId>yundong-third-domain</artifactId>
......@@ -61,7 +49,25 @@
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.1.2</version>
<version>3.17</version> <!-- 你想要的特定版本 -->
</dependency>
<!-- Excel = EasyPoi -->
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId>
<version>4.0.0</version>
<exclusions>
<exclusion>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-spring-boot-starter</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
......@@ -74,18 +80,18 @@
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>xdocreport</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>ooxml-schemas</artifactId>
<version>1.4</version>
</dependency>
......
......@@ -52,11 +52,7 @@ public class ContractWordServiceldImpl implements ContractWordServiceld {
FileOutputStream fileOutputStream = new FileOutputStream(catchFile);
FileInputStream fileInputStream = new FileInputStream(catchFile);
) {
XWPFDocument word = new XWPFDocument(resource);
// Range range = word.getRange();
// for (Map.Entry<String, Object> entry : map.entrySet()) {
// range.replaceText(entry.getKey(), String.valueOf(entry.getValue()));
// }
XWPFDocument word = new MyXWPFDocument(resource);
WordExportUtil.exportWord07(word, map);
word.write(fileOutputStream);
String fileUrl = ossService.uploadOssObject(request.getTenantId(), System.currentTimeMillis() + "/" + fileName, fileInputStream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment