Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
f8dcfb09
Commit
f8dcfb09
authored
Jan 13, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载标记
parent
a004e9cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/main/java/cn/timer/api/controller/disk/DiskFilesController.java
+5
-1
No files found.
src/main/java/cn/timer/api/controller/disk/DiskFilesController.java
View file @
f8dcfb09
...
...
@@ -224,7 +224,8 @@ public class DiskFilesController {
}
@GetMapping
(
value
=
"/exportContract"
)
public
void
exportContract
(
@CurrentUser
UserBean
userBean
,
@ApiParam
(
"文件ID"
)
@RequestParam
(
required
=
true
)
Integer
fileId
,
HttpServletResponse
resp
)
{
public
void
exportContract
(
@CurrentUser
UserBean
userBean
,
@ApiParam
(
"文件ID"
)
@RequestParam
(
required
=
true
)
Integer
fileId
,
@ApiParam
(
"下载通道默认不传:我收到的列表下载传type=1"
)
@RequestParam
(
required
=
false
)
Integer
type
,
HttpServletResponse
resp
)
{
if
(
fileId
==
null
||
fileId
<=
0
)
{
throw
new
CustomException
(
"下载失败,请选择文件下载"
);
}
...
...
@@ -232,6 +233,9 @@ public class DiskFilesController {
if
(
StringUtils
.
isEmpty
(
diskFiles
)){
throw
new
CustomException
(
"下载失败,文件不存在"
);
}
if
(
diskFiles
.
getDeleteFlag
()
==
1
&&
StringUtils
.
isEmpty
(
type
)){
throw
new
CustomException
(
"下载失败,该文件已删除"
);
}
InputStream
fis
=
null
;
BufferedInputStream
bis
=
null
;
OutputStream
os
;
...
...
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