Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
bae691d3
Commit
bae691d3
authored
Oct 17, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ziliaoxiazai youhua
parent
d927cd82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+4
-8
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/CommonServiceImpl.java
View file @
bae691d3
...
@@ -579,13 +579,8 @@ public class CommonServiceImpl {
...
@@ -579,13 +579,8 @@ public class CommonServiceImpl {
System
.
out
.
println
(
"模版文件所在目录是: "
+
templateDir
);
System
.
out
.
println
(
"模版文件所在目录是: "
+
templateDir
);
Path
tempDir
=
createUniqueDirectory
(
ziLiaoDir
,
returnDto
.
getSurveyInformation
().
getOwnersName
());
Path
tempDir
=
createUniqueDirectory
(
ziLiaoDir
,
returnDto
.
getSurveyInformation
().
getOwnersName
());
boolean
directoryExists
=
Files
.
exists
(
tempDir
);
String
wenjianjia
=
tempDir
.
toString
().
replace
(
"\\"
,
"/"
);
if
(
directoryExists
){
}
else
{
}
try
{
try
{
Files
.
createDirectories
(
tempDir
);
// 创建临时目录
Files
.
createDirectories
(
tempDir
);
// 创建临时目录
System
.
out
.
println
(
"Temporary directory created at: "
+
tempDir
);
System
.
out
.
println
(
"Temporary directory created at: "
+
tempDir
);
...
@@ -593,10 +588,11 @@ public class CommonServiceImpl {
...
@@ -593,10 +588,11 @@ public class CommonServiceImpl {
e
.
printStackTrace
();
e
.
printStackTrace
();
return
;
return
;
}
}
String
templatePath
=
"templates/informationTemp.xlsx"
;
String
templatePath
=
"templates/informationTemp.xlsx"
;
//String templatePath = "F:\\work\\amos-boot-zx-biz\\amos-boot-system-jxiop\\amos-boot-module-hygf-biz\\src\\main\\resources\\templates\\informationTemp.xlsx";
//String templatePath = "F:\\work\\amos-boot-zx-biz\\amos-boot-system-jxiop\\amos-boot-module-hygf-biz\\src\\main\\resources\\templates\\informationTemp.xlsx";
// String outputPath = "F:\\work\\amos-boot-zx-biz\\amos-boot-system-jxiop\\amos-boot-module-hygf-biz\\src\\main\\resources\\templates\\temp\\"+returnDto.getSurveyInformation().getOwnersName()+".xlsx";
// String outputPath = "F:\\work\\amos-boot-zx-biz\\amos-boot-system-jxiop\\amos-boot-module-hygf-biz\\src\\main\\resources\\templates\\temp\\"+returnDto.getSurveyInformation().getOwnersName()+".xlsx";
String
outputPath
=
"批量资料/"
+
returnDto
.
getSurveyInformation
().
getOwnersName
()
+
"/"
+
returnDto
.
getSurveyInformation
().
getOwnersName
()+
".xlsx"
;
String
outputPath
=
wenjianjia
+
"/"
+
returnDto
.
getSurveyInformation
().
getOwnersName
()+
".xlsx"
;
Workbook
workbook
=
null
;
Workbook
workbook
=
null
;
try
(
InputStream
fis
=
new
ClassPathResource
(
templatePath
).
getInputStream
()){
try
(
InputStream
fis
=
new
ClassPathResource
(
templatePath
).
getInputStream
()){
...
...
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