Quellcode durchsuchen

重新初始化 code

tags/24080901
PoffyZhang vor 1 Jahr
Ursprung
Commit
6f0a523838
2 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

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


Laden…
Abbrechen
Speichern