diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java index 121caa8..cab7da7 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java @@ -57,7 +57,7 @@ public class EmployeeBatchGetTask { private IUserInfoService iUserInfoService; @Transactional(rollbackFor = Exception.class) - @Scheduled(cron = "0 0 1 0/1 0 ?") + @Scheduled(cron = "0 0 1 * * ?") public void batchGetEmployeeTask() { // 获取所有的组织列表用户获取组织下的 用户信息 List dingOrganizationList = iDingOrganizationService.list(); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java index ce58938..9fb0590 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java @@ -35,7 +35,7 @@ public class GovBusinessStripsTask { private IGovBusinessStripService iGovBusinessStripService; @Transactional(rollbackFor = Exception.class) - @Scheduled(cron = "0 0 1 0/1 0 ?") + @Scheduled(cron = "0 0 1 * * ?") public void batchGetGovBusinessStripsTask() { PageSubGovBusinessStripsQuery pageSubGovBusinessStripsQuery = new PageSubGovBusinessStripsQuery(); pageSubGovBusinessStripsQuery.setPageNo(1); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java index 7293b4b..468d457 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java @@ -46,7 +46,7 @@ public class OrganizationBatchGetTask { * 获取浙政钉组织架构 */ @Transactional(rollbackFor = Exception.class) - @Scheduled(cron = "0 0 1 0/1 0 ?") + @Scheduled(cron = "0 0 1 * * ?") public void batchGetOrganizationTask() { // List allList = iDingOrganizationService.list(); // List currentAllOrganizationCodeList = allList.stream().map(DingOrganization::getOrganizationCode).collect(Collectors.toList());