Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chuanshan_gov_platform
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
廖旭伟
chuanshan_gov_platform
Commits
bc98f3ec
Commit
bc98f3ec
authored
Aug 25, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量下载附件
parent
fae5cea5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
...m/mortals/xhx/module/apply/web/MatterApplyController.java
+5
-9
No files found.
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
View file @
bc98f3ec
...
...
@@ -280,19 +280,15 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
}
@PostMapping
(
"/batchDownloadFile"
)
public
void
batchDownloadFile
(
@RequestBody
MatterApplyDatumEntity
query
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
@PostMapping
(
value
=
"download/matter/file"
)
public
void
downloadFile
(
@RequestBody
MatterApplyDatumEntity
query
)
{
List
<
MatterApplyDatumEntity
>
datumEntityList
=
matterApplyDatumService
.
find
(
query
);
//List<String> fileList = splitToLong(ids);
batchDownloadFile
(
datumEntityList
,
request
,
response
);
}
@PostMapping
(
"/batchDownloadAllFile"
)
public
void
batchDownloadAllFile
(
@RequestBody
MatterApplyEntity
query
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
@PostMapping
(
value
=
"download/all/file"
)
public
void
downloadAllFile
(
@RequestBody
MatterApplyEntity
query
)
{
List
<
MatterApplyDatumEntity
>
datumEntityList
=
matterApplyDatumService
.
find
(
new
MatterApplyDatumQuery
().
applyId
(
query
.
getId
()));
//List<String> fileList = splitToLong(ids);
batchDownloadFile
(
datumEntityList
,
request
,
response
);
...
...
@@ -305,7 +301,7 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
* @param request request
* @param response response
*/
p
ublic
void
batchDownloadFile
(
List
<
MatterApplyDatumEntity
>
list
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
p
rivate
void
batchDownloadFile
(
List
<
MatterApplyDatumEntity
>
list
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
//设置响应头信息
response
.
reset
();
response
.
setCharacterEncoding
(
"utf-8"
);
...
...
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