瀏覽代碼

重新初始化 code

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
1375097e58
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/BatchUpdateEmployeeTask.java

+ 4
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/BatchUpdateEmployeeTask.java 查看文件

@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.scheduler.task;

import cn.hutool.core.date.StopWatch;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.common.collect.Lists;
import com.ningdatech.pmapi.ding.constants.DingOrganizationContant;
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask;
import com.ningdatech.pmapi.organization.model.entity.DingOrganization;
@@ -42,7 +43,9 @@ public class BatchUpdateEmployeeTask {
stopWatch.start();
// 1.查出浙政钉 所有单位
List<DingOrganization> units = organizationService.list(Wrappers.lambdaQuery(DingOrganization.class)
.eq(DingOrganization::getTypeCode, DingOrganizationContant.UNIT_TYPE));
.in(DingOrganization::getTypeCode, Lists.newArrayList(
DingOrganizationContant.UNIT_TYPE,DingOrganizationContant.GOV_TEMPORARY
)));

log.info("需要更新的 单位数量为 {}",units.size());



Loading…
取消
儲存