Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhj-report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
data-spider
zhj-report
Commits
872bf201
Commit
872bf201
authored
Jan 07, 2020
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增数据上报手动触发
parent
e8467582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
ReportController.java
src/main/java/com/controller/ReportController.java
+19
-4
No files found.
src/main/java/com/controller/ReportController.java
View file @
872bf201
...
...
@@ -7,6 +7,7 @@ import com.emums.InfoType;
import
com.entity.FileEntry
;
import
com.service.report.ReportService
;
import
com.timer.ReportTimer
;
import
com.util.ThreadPoolUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -38,13 +39,27 @@ public class ReportController {
@Autowired
private
ReportTimer
reportTimer
;
public
static
boolean
isrun
=
false
;
@RequestMapping
(
"report"
)
public
String
report
(
String
token
)
{
@RequestMapping
(
"report"
)
public
String
report
(
String
token
,
String
type
)
{
if
(!
"4745589d-f394-9028-26e5-2913aa252917"
.
equals
(
token
))
{
return
"token有误"
;
}
reportTimer
.
reportDayData
();
return
"任务执行"
;
ThreadPoolUtil
.
getInstance
().
execute
(()->{
if
(
"1"
.
equals
(
type
))
{
reportService
.
reportLoanDayData
();
//放款
}
else
if
(
"2"
.
equals
(
type
))
{
reportService
.
reportRepayDayData
();
//还款
}
else
if
(
"3"
.
equals
(
type
))
{
reportService
.
reportOverDayData
();
//天逾期
}
else
if
(
"4"
.
equals
(
type
))
{
reportService
.
reportOverMonthData
();
//月逾期
}
else
if
(
"all"
.
equals
(
type
))
{
reportTimer
.
reportDayData
();
}
reportTimer
.
talk
(
ReportTimer
.
result
);
});
return
"任务执行执行"
;
}
@RequestMapping
(
"/upDataByJson"
)
...
...
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