|
@@ -1,5 +1,6 @@
|
|
|
package com.malk.lanyun.schedule;
|
|
|
|
|
|
+import com.malk.lanyun.service.FService;
|
|
|
import com.malk.lanyun.service.SyncAssetsService;
|
|
|
import com.malk.lanyun.service.TimerService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -26,6 +27,10 @@ public class ScheduleTask {
|
|
|
|
|
|
@Autowired
|
|
|
private SyncAssetsService syncAssetsService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FService fService;
|
|
|
+
|
|
|
/**
|
|
|
* 每月1日凌晨1点自动执行
|
|
|
*/
|
|
@@ -88,7 +93,7 @@ public class ScheduleTask {
|
|
|
/**
|
|
|
* 每月最后一天跑批离职人员
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 03 23 28-31 * ?")
|
|
|
+ @Scheduled(cron = "0 30 23 28-31 * ?")
|
|
|
void SynDingLeaveOffice(){
|
|
|
// 获取当前日期
|
|
|
LocalDate today = LocalDate.now();
|
|
@@ -107,8 +112,8 @@ public class ScheduleTask {
|
|
|
*/
|
|
|
@Scheduled(cron = "0 30 12 * * 5")
|
|
|
public void projectUnshippedTask() {
|
|
|
- timerService.projectUnshipped();
|
|
|
log.info("项目点档案本周出库情况执行时间 :" + new Date());
|
|
|
+ timerService.projectUnshipped();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -118,4 +123,22 @@ public class ScheduleTask {
|
|
|
void monthPersonnelTask(){
|
|
|
timerService.monthPersonnelMatters();
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 每月10号上午9点同步催款函
|
|
|
+ */
|
|
|
+ @Scheduled(cron = "0 0 9 10 * ?")
|
|
|
+ void syncCallLettersTask(){
|
|
|
+ log.info("开始同步催款函");
|
|
|
+ fService.syncCallLetters();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 每天晚上22点全量同步账龄表
|
|
|
+ */
|
|
|
+ @Scheduled(cron = "0 0 22 * * ?")
|
|
|
+ void syncAgingTask(){
|
|
|
+ log.info("全量同步账龄表");
|
|
|
+ fService.syncAgingSchedule();
|
|
|
+ }
|
|
|
+
|
|
|
}
|