瀏覽代碼

重新初始化 code

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
6f0a523838
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/ding/constants/DingOrganizationContant.java
  2. +7
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/ProcDefManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/ding/constants/DingOrganizationContant.java 查看文件

@@ -9,6 +9,6 @@ package com.ningdatech.pmapi.ding.constants;
public interface DingOrganizationContant {

String UNIT_TYPE = "GOV_UNIT";
String GOV_TEMPORARY = "GOV_TEMPORARY";
String HOLLOW = "GOV_HOLLOW_DIVISION_NODE";
}

+ 7
- 2
pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/ProcDefManage.java 查看文件

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


Loading…
取消
儲存