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
8cb87e20
Commit
8cb87e20
authored
Oct 18, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资料上传
parent
fd56b875
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+7
-3
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 @
8cb87e20
...
@@ -554,9 +554,11 @@ public class CommonServiceImpl {
...
@@ -554,9 +554,11 @@ public class CommonServiceImpl {
for
(
String
peasantHouseholdId
:
peasantHouseholdIds
)
{
for
(
String
peasantHouseholdId
:
peasantHouseholdIds
)
{
SurveyInfoAllDto
returnDto
=
surveyInformationServiceImpl
.
querySurveyInfo
(
surveyInformationId
,
peasantHouseholdId
,
processInstanceId
,
null
);
SurveyInfoAllDto
returnDto
=
surveyInformationServiceImpl
.
querySurveyInfo
(
surveyInformationId
,
peasantHouseholdId
,
processInstanceId
,
null
);
fileName
=
returnDto
.
getSurveyInformation
().
getOwnersName
();
fileName
=
returnDto
.
getSurveyInformation
().
getOwnersName
();
if
(!
redisKey
.
contains
(
","
)){
redisUtils
.
set
(
redisKey
,
MapBuilder
.<
String
,
Object
>
create
()
redisUtils
.
set
(
redisKey
,
MapBuilder
.<
String
,
Object
>
create
()
.
put
(
"value"
,
currentBili
).
build
());
.
put
(
"value"
,
currentBili
).
build
());
}
String
powerStationInstanceId
=
powerStationMapper
.
getInstanceIdByhouseId
(
peasantHouseholdId
);
String
powerStationInstanceId
=
powerStationMapper
.
getInstanceIdByhouseId
(
peasantHouseholdId
);
String
financingInstanceId
=
financingAuditingMapper
.
getInstanceIdByhouseId
(
peasantHouseholdId
);
String
financingInstanceId
=
financingAuditingMapper
.
getInstanceIdByhouseId
(
peasantHouseholdId
);
List
<
LinkedHashMap
>
powerStationWorkLog
=
new
ArrayList
<>();
List
<
LinkedHashMap
>
powerStationWorkLog
=
new
ArrayList
<>();
...
@@ -859,20 +861,22 @@ public class CommonServiceImpl {
...
@@ -859,20 +861,22 @@ public class CommonServiceImpl {
}
}
// response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename="+returnDto.getSurveyInformation().getOwnersName()+".zip");
// response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename="+returnDto.getSurveyInformation().getOwnersName()+".zip");
if
(
redisKey
.
contains
(
","
)){
currentBili
=
currentBili
+
baifenbi
;
currentBili
=
currentBili
+
baifenbi
;
redisUtils
.
set
(
redisKey
,
MapBuilder
.<
String
,
Object
>
create
()
redisUtils
.
set
(
redisKey
,
MapBuilder
.<
String
,
Object
>
create
()
.
put
(
"value"
,
currentBili
).
build
());
.
put
(
"value"
,
currentBili
).
build
());
}
}
}
String
encodedFilename
=
""
;
String
encodedFilename
=
""
;
response
.
setHeader
(
"Access-Control-Expose-Headers"
,
"Content-Disposition"
);
response
.
setHeader
(
"Access-Control-Expose-Headers"
,
"Content-Disposition"
);
if
(
peasantHouseholdIds
.
size
()
>
1
){
if
(
peasantHouseholdIds
.
size
()
>
1
){
fileName
=
"批量资料"
;
fileName
=
"批量资料"
;
encodedFilename
=
URLEncoder
.
encode
(
"批量资料.zip"
,
StandardCharsets
.
UTF_8
.
name
());
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
+
".zip"
,
"UTF-8"
));
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
+
".zip"
,
"UTF-8"
));
createZipFile
(
ziLiaoDir
,
fileName
,
response
);
createZipFile
(
ziLiaoDir
,
fileName
,
response
);
}
else
{
}
else
{
encodedFilename
=
URLEncoder
.
encode
(
fileName
+
".zip"
,
StandardCharsets
.
UTF_8
.
name
());
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
+
".zip"
,
"UTF-8"
));
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
+
".zip"
,
"UTF-8"
));
createZipFile
(
ziLiaoDir
,
"批量资料/"
+
fileName
,
response
);
createZipFile
(
ziLiaoDir
,
"批量资料/"
+
fileName
,
response
);
}
}
...
...
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