Commit 0444d51a authored by 董建华's avatar 董建华

暂停定时器

parent 37bf544c
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment