@@ -57,7 +57,7 @@ public class EmployeeBatchGetTask { | |||||
private IUserInfoService iUserInfoService; | private IUserInfoService iUserInfoService; | ||||
@Transactional(rollbackFor = Exception.class) | @Transactional(rollbackFor = Exception.class) | ||||
@Scheduled(cron = "0 0 1 0/1 0 ?") | |||||
@Scheduled(cron = "0 0 1 * * ?") | |||||
public void batchGetEmployeeTask() { | public void batchGetEmployeeTask() { | ||||
// 获取所有的组织列表用户获取组织下的 用户信息 | // 获取所有的组织列表用户获取组织下的 用户信息 | ||||
List<DingOrganization> dingOrganizationList = iDingOrganizationService.list(); | List<DingOrganization> dingOrganizationList = iDingOrganizationService.list(); | ||||
@@ -35,7 +35,7 @@ public class GovBusinessStripsTask { | |||||
private IGovBusinessStripService iGovBusinessStripService; | private IGovBusinessStripService iGovBusinessStripService; | ||||
@Transactional(rollbackFor = Exception.class) | @Transactional(rollbackFor = Exception.class) | ||||
@Scheduled(cron = "0 0 1 0/1 0 ?") | |||||
@Scheduled(cron = "0 0 1 * * ?") | |||||
public void batchGetGovBusinessStripsTask() { | public void batchGetGovBusinessStripsTask() { | ||||
PageSubGovBusinessStripsQuery pageSubGovBusinessStripsQuery = new PageSubGovBusinessStripsQuery(); | PageSubGovBusinessStripsQuery pageSubGovBusinessStripsQuery = new PageSubGovBusinessStripsQuery(); | ||||
pageSubGovBusinessStripsQuery.setPageNo(1); | pageSubGovBusinessStripsQuery.setPageNo(1); | ||||
@@ -46,7 +46,7 @@ public class OrganizationBatchGetTask { | |||||
* 获取浙政钉组织架构 | * 获取浙政钉组织架构 | ||||
*/ | */ | ||||
@Transactional(rollbackFor = Exception.class) | @Transactional(rollbackFor = Exception.class) | ||||
@Scheduled(cron = "0 0 1 0/1 0 ?") | |||||
@Scheduled(cron = "0 0 1 * * ?") | |||||
public void batchGetOrganizationTask() { | public void batchGetOrganizationTask() { | ||||
// List<DingOrganization> allList = iDingOrganizationService.list(); | // List<DingOrganization> allList = iDingOrganizationService.list(); | ||||
// List<String> currentAllOrganizationCodeList = allList.stream().map(DingOrganization::getOrganizationCode).collect(Collectors.toList()); | // List<String> currentAllOrganizationCodeList = allList.stream().map(DingOrganization::getOrganizationCode).collect(Collectors.toList()); | ||||