Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yundong
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊学
yundong
Commits
33271a26
Commit
33271a26
authored
Dec 27, 2023
by
linjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同导出修改依赖
parent
9bc0af23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
yundong-third-ht/pom.xml
yundong-third-ht/pom.xml
+25
-19
yundong-third-ht/src/main/java/com/yundong/third/ht/api/database/impl/ContractWordServiceldImpl.java
...third/ht/api/database/impl/ContractWordServiceldImpl.java
+1
-5
No files found.
yundong-third-ht/pom.xml
View file @
33271a26
...
@@ -22,18 +22,6 @@
...
@@ -22,18 +22,6 @@
<groupId>
com.yundong.idaas
</groupId>
<groupId>
com.yundong.idaas
</groupId>
<artifactId>
yundong-third-facade
</artifactId>
<artifactId>
yundong-third-facade
</artifactId>
</dependency>
</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>
<dependency>
<groupId>
com.yundong.idaas
</groupId>
<groupId>
com.yundong.idaas
</groupId>
<artifactId>
yundong-third-domain
</artifactId>
<artifactId>
yundong-third-domain
</artifactId>
...
@@ -61,7 +49,25 @@
...
@@ -61,7 +49,25 @@
<dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
<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>
<dependency>
<dependency>
...
@@ -74,18 +80,18 @@
...
@@ -74,18 +80,18 @@
<artifactId>
poi-ooxml
</artifactId>
<artifactId>
poi-ooxml
</artifactId>
<version>
4.1.2
</version>
<version>
4.1.2
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
<version>
4.1.2
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
fr.opensagres.xdocreport
</groupId>
<groupId>
fr.opensagres.xdocreport
</groupId>
<artifactId>
xdocreport
</artifactId>
<artifactId>
xdocreport
</artifactId>
<version>
2.0.2
</version>
<version>
2.0.2
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
ooxml-schemas
</artifactId>
<version>
1.4
</version>
</dependency>
...
...
yundong-third-ht/src/main/java/com/yundong/third/ht/api/database/impl/ContractWordServiceldImpl.java
View file @
33271a26
...
@@ -52,11 +52,7 @@ public class ContractWordServiceldImpl implements ContractWordServiceld {
...
@@ -52,11 +52,7 @@ public class ContractWordServiceldImpl implements ContractWordServiceld {
FileOutputStream
fileOutputStream
=
new
FileOutputStream
(
catchFile
);
FileOutputStream
fileOutputStream
=
new
FileOutputStream
(
catchFile
);
FileInputStream
fileInputStream
=
new
FileInputStream
(
catchFile
);
FileInputStream
fileInputStream
=
new
FileInputStream
(
catchFile
);
)
{
)
{
XWPFDocument
word
=
new
XWPFDocument
(
resource
);
XWPFDocument
word
=
new
MyXWPFDocument
(
resource
);
// Range range = word.getRange();
// for (Map.Entry<String, Object> entry : map.entrySet()) {
// range.replaceText(entry.getKey(), String.valueOf(entry.getValue()));
// }
WordExportUtil
.
exportWord07
(
word
,
map
);
WordExportUtil
.
exportWord07
(
word
,
map
);
word
.
write
(
fileOutputStream
);
word
.
write
(
fileOutputStream
);
String
fileUrl
=
ossService
.
uploadOssObject
(
request
.
getTenantId
(),
System
.
currentTimeMillis
()
+
"/"
+
fileName
,
fileInputStream
);
String
fileUrl
=
ossService
.
uploadOssObject
(
request
.
getTenantId
(),
System
.
currentTimeMillis
()
+
"/"
+
fileName
,
fileInputStream
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment