add: 人员和部门同步方式修改为全量同步
This commit is contained in:
@@ -31,13 +31,25 @@ public class ScheduledSync {
|
||||
private boolean isNotScheduled; //是否开启定时器
|
||||
|
||||
//每天凌晨两点执行
|
||||
// @Scheduled(cron="0 0 2 * * ?")
|
||||
// @Async
|
||||
// public void syncSchedulingTasks() {
|
||||
// if(isNotScheduled){
|
||||
// log.info("======================================开始同步基础数据========================================");
|
||||
// iDataSyncService.orgDataSync(); //时间短
|
||||
// iDataSyncService.dataSync(); //时间长
|
||||
// log.info("======================================结束同步基础数据========================================");
|
||||
// }
|
||||
// }
|
||||
|
||||
//每天凌晨两点执行,改为全量同步
|
||||
@Scheduled(cron="0 0 2 * * ?")
|
||||
@Async
|
||||
public void syncSchedulingTasks() {
|
||||
if(isNotScheduled){
|
||||
log.info("======================================开始同步基础数据========================================");
|
||||
iDataSyncService.orgDataSync(); //时间短
|
||||
iDataSyncService.dataSync(); //时间长
|
||||
iDataSyncService.orgDataSync2(); //时间短
|
||||
iDataSyncService.dataSync2(System.currentTimeMillis() / 1000); //时间长
|
||||
log.info("======================================结束同步基础数据========================================");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user