|
@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.scheduler.task; |
|
|
|
|
|
|
|
|
import cn.hutool.core.date.StopWatch; |
|
|
import cn.hutool.core.date.StopWatch; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
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.constants.DingOrganizationContant; |
|
|
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask; |
|
|
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask; |
|
|
import com.ningdatech.pmapi.organization.model.entity.DingOrganization; |
|
|
import com.ningdatech.pmapi.organization.model.entity.DingOrganization; |
|
@@ -42,7 +43,9 @@ public class BatchUpdateEmployeeTask { |
|
|
stopWatch.start(); |
|
|
stopWatch.start(); |
|
|
// 1.查出浙政钉 所有单位 |
|
|
// 1.查出浙政钉 所有单位 |
|
|
List<DingOrganization> units = organizationService.list(Wrappers.lambdaQuery(DingOrganization.class) |
|
|
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()); |
|
|
log.info("需要更新的 单位数量为 {}",units.size()); |
|
|
|
|
|
|
|
|