更新
This commit is contained in:
parent
d8d1973a6f
commit
23a764cc06
@ -28,7 +28,7 @@ public class ZHYTask {
|
||||
@Autowired
|
||||
BankInfoController bankInfoController;
|
||||
|
||||
@Scheduled(cron = "*/45 * * * * ?")
|
||||
// @Scheduled(cron = "*/45 * * * * ?")
|
||||
private void configureTasks() throws Exception {
|
||||
System.out.println("开始同步数据");
|
||||
preContractController.syncContract();
|
||||
|
@ -4,10 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.ssssssss.magicboot.controller.UsceController;
|
||||
import org.ssssssss.magicboot.controller.customerContactController;
|
||||
import org.ssssssss.magicboot.controller.customerController;
|
||||
import org.ssssssss.magicboot.controller.customerFinInfoController;
|
||||
import org.ssssssss.magicboot.controller.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@ -23,34 +20,72 @@ public class testTask {
|
||||
customerContactController contact;
|
||||
@Autowired
|
||||
customerFinInfoController finInfo;
|
||||
@Autowired
|
||||
materialreqbillXTController materialreqbill;
|
||||
@Autowired
|
||||
returnapplicationController returnapplication;
|
||||
@Autowired
|
||||
priceapprovaController priceapprovaController;
|
||||
@Autowired
|
||||
ProjectObjController projectObjController;
|
||||
@Autowired
|
||||
ProjectNewOpportunityController projectNewOpportunityController;
|
||||
|
||||
@Scheduled(cron = "0 */1 * * * ?")
|
||||
@Autowired
|
||||
intentionPredictionController intentionPredictionController;
|
||||
@Autowired
|
||||
salesPredictionController salesPredictionController;
|
||||
|
||||
|
||||
@Scheduled(cron = "*/45 * * * * ?")
|
||||
//或直接指定时间间隔,例如:5秒
|
||||
private void configureTasks() throws Exception {
|
||||
customer.getSynDataAdd();
|
||||
customer.getSynKH();
|
||||
customer.getSynDataUpdate();
|
||||
customer.getSynKHUPdate();
|
||||
// customer.getSynDataUpdate();
|
||||
// customer.getSynKHUPdate();
|
||||
|
||||
System.err.println("执行静态定时任务时间: " + LocalDateTime.now());
|
||||
materialreqbill.getOperation();
|
||||
materialreqbill.getSynDataAdd();
|
||||
materialreqbill.materialreqbillSave();
|
||||
|
||||
projectObjController.getSynData();
|
||||
projectObjController.saveSynData();
|
||||
projectNewOpportunityController.getSynData();
|
||||
projectNewOpportunityController.saveSynData();
|
||||
|
||||
intentionPredictionController.getSynDataAdd();
|
||||
intentionPredictionController.SynSave();
|
||||
intentionPredictionController.getClose();
|
||||
salesPredictionController.getSynDataAdd();
|
||||
salesPredictionController.SynSave();
|
||||
|
||||
|
||||
System.err.println("执行45s静态定时任务时间: " + LocalDateTime.now());
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 */2 * * * ?")
|
||||
@Scheduled(cron = "*/90 * * * * ?")
|
||||
//或直接指定时间间隔,例如:5秒
|
||||
private void configureTasks2() throws Exception {
|
||||
returnapplication.getSynDataAdd();
|
||||
returnapplication.materialreqbillSave();
|
||||
|
||||
priceapprovaController.getSynDataAdd();
|
||||
priceapprovaController.priceapprovaSave();
|
||||
|
||||
contact.getSynDataAdd();
|
||||
contact.SaveSyn();
|
||||
finInfo.getSynDataAdd();
|
||||
finInfo.SaveSyn();
|
||||
// finInfo.getSynDataAdd();
|
||||
// finInfo.SaveSyn();
|
||||
|
||||
System.err.println("执行2静态定时任务时间: " + LocalDateTime.now());
|
||||
System.err.println("执行90s静态定时任务时间: " + LocalDateTime.now());
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 */30 * * * ?")
|
||||
// @Scheduled(cron = "0 */30 * * * ?")
|
||||
//或直接指定时间间隔,例如:5秒
|
||||
private void configureTasks30() throws Exception {
|
||||
user.getUserData();
|
||||
user.saveSynUser();
|
||||
System.err.println("执行30静态定时任务时间: " + LocalDateTime.now());
|
||||
System.err.println("执行30min静态定时任务时间: " + LocalDateTime.now());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user