|
@@ -28,7 +28,7 @@ public class InsureEmailSchedule {
|
|
|
|
|
|
|
|
|
|
//每小时执行1次
|
|
//每小时执行1次
|
|
- @Scheduled(fixedDelay = 30* 1000)
|
|
|
|
|
|
+ @Scheduled(fixedDelay = 600* 1000)
|
|
public void task() throws IOException {
|
|
public void task() throws IOException {
|
|
|
|
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
@@ -55,7 +55,7 @@ public class InsureEmailSchedule {
|
|
|
|
|
|
|
|
|
|
//保险过期
|
|
//保险过期
|
|
- @Scheduled(fixedDelay = 10* 1000)
|
|
|
|
|
|
+ @Scheduled(fixedDelay = 600* 1000)
|
|
public void task3(){
|
|
public void task3(){
|
|
agreementLogic.offInsure();
|
|
agreementLogic.offInsure();
|
|
}
|
|
}
|