Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-doc-expand
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
server
dcs-doc-expand
Commits
88baa04d
Commit
88baa04d
authored
Nov 20, 2024
by
侯彦文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改案卷pdf名称
parent
4858ec2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ExtFilesServiceImpl.java
...t/dcs/document/core/service/impl/ExtFilesServiceImpl.java
+2
-1
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtFilesServiceImpl.java
View file @
88baa04d
...
...
@@ -286,6 +286,7 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
}
resultDatas
.
put
(
"data"
,
extFilesMap
);
resultDatas
.
put
(
"contextName"
,
ifNull
(
dxContextProjectVO
.
getName
()));
resultDatas
.
put
(
"mj"
,
ifNull
(
dxContextProjectVO
.
getSecretCode
()));
String
string
=
convertPdf
(
"案卷目录模板.docx"
,
resultDatas
);
/*File pdfFile = new File(string);*/
MultipartFile
multipartFile
=
DxObjFileUtils
.
createFile
(
string
);
...
...
@@ -325,7 +326,7 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
public
String
convertPdf
(
String
modelName
,
Map
<
String
,
Object
>
dataMap
)
{
String
targetPath
=
System
.
getProperty
(
"user.dir"
)
+
"/TEMP/"
;
File
wordFile
=
new
File
(
targetPath
+
modelName
);
File
pdfFile2
=
new
File
(
"TEMP/"
+
modelName
+
"---"
+
UUID
.
randomUUID
()
+
".pdf"
);
File
pdfFile2
=
new
File
(
"TEMP/"
+
dataMap
.
get
(
"contextName"
)
+
"案卷目录"
+
"("
+
dataMap
.
get
(
"mj"
)
+
")"
+
".pdf"
);
try
{
InputStream
tempStream2
=
Files
.
newInputStream
(
wordFile
.
toPath
());
OutputStream
outputStream
=
Files
.
newOutputStream
(
pdfFile2
.
toPath
());
...
...
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