Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
719521a3
Commit
719521a3
authored
Jan 02, 2024
by
liuChang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
7fc4ec02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
ExportService.java
...i/src/main/java/com/dsk/search/service/ExportService.java
+1
-9
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/search/service/ExportService.java
View file @
719521a3
...
...
@@ -47,13 +47,7 @@ public class ExportService {
private
String
EXPORT_BACK_URL
;
public
AjaxResult
aptitudeFile
(
MultipartFile
file
)
throws
Exception
{
int
exportCount
=
1
;
if
(
RedisUtils
.
hasKey
(
"aptitudeFileExportCount"
)){
exportCount
=
RedisUtils
.
getCacheObject
(
"aptitudeFileExportCount"
);
if
(
exportCount
>=
3000
){
return
AjaxResult
.
error
(
"每天最多导出3次"
);
}
}
ComposeQueryDto
composeQueryDto
=
new
ComposeQueryDto
();
//识别Excel内容
...
...
@@ -87,8 +81,6 @@ public class ExportService {
composeQueryDto
.
setExportBackUrl
(
EXPORT_BACK_URL
);
composeQueryDto
.
setExportExeclName
(
fileName
);
dskOpenApiUtil
.
requestBody
(
"/operate/export/zjyj/aptitude"
,
BeanUtil
.
beanToMap
(
composeQueryDto
,
false
,
false
));
RedisUtils
.
setCacheObject
(
"aptitudeFileExportCount"
,
exportCount
+
1
);
RedisUtils
.
expire
(
"aptitudeFileExportCount"
,
Duration
.
ofHours
(
24
));
return
AjaxResult
.
success
();
}
...
...
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