Browse Source

增加浙政钉信息拉去的任务修改

master
WendyYang 1 year ago
parent
commit
2756547a66
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java
  3. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/ding/task/EmployeeBatchGetTask.java View File

@@ -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<DingOrganization> dingOrganizationList = iDingOrganizationService.list();


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/ding/task/GovBusinessStripsTask.java View File

@@ -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);


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/ding/task/OrganizationBatchGetTask.java View File

@@ -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<DingOrganization> allList = iDingOrganizationService.list();
// List<String> currentAllOrganizationCodeList = allList.stream().map(DingOrganization::getOrganizationCode).collect(Collectors.toList());


Loading…
Cancel
Save