|
|
@@ -3,6 +3,7 @@ package com.ningdatech.pmapi.organization.manage; |
|
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.ningdatech.basic.util.StrPool; |
|
|
|
import com.ningdatech.pmapi.ding.constants.DingOrganizationContant; |
|
|
|
import com.ningdatech.pmapi.organization.model.entity.DingOrganization; |
|
|
@@ -43,7 +44,9 @@ public class ProcDefManage { |
|
|
|
*/ |
|
|
|
public String init() { |
|
|
|
List<DingOrganization> orgs = 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("需要处理初始化单位配置的企业 数量为{}",orgs.size()); |
|
|
|
|
|
|
@@ -104,7 +107,9 @@ public class ProcDefManage { |
|
|
|
|
|
|
|
public String initByArea(String areaCode) { |
|
|
|
List<DingOrganization> orgs = organizationService.list(Wrappers.lambdaQuery(DingOrganization.class) |
|
|
|
.eq(DingOrganization::getTypeCode, DingOrganizationContant.UNIT_TYPE) |
|
|
|
.in(DingOrganization::getTypeCode, Lists.newArrayList( |
|
|
|
DingOrganizationContant.UNIT_TYPE,DingOrganizationContant.GOV_TEMPORARY |
|
|
|
)) |
|
|
|
.eq(DingOrganization::getDivisionCode,areaCode)); |
|
|
|
|
|
|
|
log.info("{}地区 需要处理初始化单位配置的企业 数量为{}",areaCode,orgs.size()); |
|
|
|