Bläddra i källkod

重新初始化 code

master
PoffyZhang 1 år sedan
förälder
incheckning
6f0a523838
2 ändrade filer med 8 tillägg och 3 borttagningar
  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 Visa fil

@@ -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 Visa fil

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


Laddar…
Avbryt
Spara