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
0444d51a
Commit
0444d51a
authored
Nov 12, 2019
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂停定时器
parent
37bf544c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ReportTimer.java
src/main/java/com/timer/ReportTimer.java
+6
-6
No files found.
src/main/java/com/timer/ReportTimer.java
View file @
0444d51a
...
@@ -38,11 +38,11 @@ public class ReportTimer {
...
@@ -38,11 +38,11 @@ public class ReportTimer {
}
}
//每天凌晨2点
//每天凌晨2点
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
void
reportDayData
()
{
void
reportDayData
()
{
//
if (!isRun) {
if
(!
isRun
)
{
//
return;
return
;
//
}
}
dayReportIsRunning
=
true
;
dayReportIsRunning
=
true
;
try
{
try
{
//上报日放款数据
//上报日放款数据
...
@@ -59,7 +59,7 @@ public class ReportTimer {
...
@@ -59,7 +59,7 @@ public class ReportTimer {
}
}
//每月1次
//每月1次
@Scheduled
(
cron
=
"0 0 3 1 1/1 ?"
)
//
@Scheduled(cron = "0 0 3 1 1/1 ?")
void
reportMonthData
()
{
void
reportMonthData
()
{
if
(!
isRun
)
{
if
(!
isRun
)
{
return
;
return
;
...
@@ -75,7 +75,7 @@ public class ReportTimer {
...
@@ -75,7 +75,7 @@ public class ReportTimer {
}
}
//一小时一次 延迟10秒
//一小时一次 延迟10秒
@Scheduled
(
fixedDelay
=
1000
*
60
*
60
,
initialDelay
=
10000
)
//
@Scheduled(fixedDelay = 1000 * 60 * 60, initialDelay = 10000)
public
void
quaryReportedStatus
()
{
public
void
quaryReportedStatus
()
{
//测试先去掉这个限制
//测试先去掉这个限制
// if (!isRun) {
// if (!isRun) {
...
...
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