diff --git a/epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java b/epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java index 625c1ec995..2429bc8334 100644 --- a/epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java +++ b/epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java @@ -181,6 +181,9 @@ public class IcPartyActServiceImpl extends BaseServiceImpl pids=new ArrayList<>(); - pids.add(icPartyOrgId); + orgInfo.setOrgPid(orgEntity.getOrgPid()); + orgInfo.setPartyOrgName(orgEntity.getPartyOrgName()); + if(StringUtils.isBlank(orgEntity.getOrgPid())||NumConstant.ZERO_STR.equals(orgEntity.getOrgPid())){ + //一级党组织直接返回 + orgInfo.setPartyOrgIdPath(orgEntity.getId()); + orgInfo.setPartyOrgNamePath(orgEntity.getPartyOrgName()); + return orgInfo; + } + List pids=new ArrayList<>(); + pids.add(icPartyOrgId); - List names=new ArrayList<>(); - names.add(orgEntity.getPartyOrgName()); + List names=new ArrayList<>(); + names.add(orgEntity.getPartyOrgName()); - Map map=getPartyOrgIdPath(pids,names,orgEntity.getOrgPid()); - String partyOrgIdPath = map.containsKey("idPath") ? map.get("idPath") : StrConstant.EPMETY_STR; - String partyOrgNamePath = map.containsKey("namePath") ? map.get("namePath") : StrConstant.EPMETY_STR; - orgInfo.setPartyOrgIdPath(partyOrgIdPath); - orgInfo.setPartyOrgNamePath(partyOrgNamePath); - } + Map map=getPartyOrgIdPath(pids,names,orgEntity.getOrgPid()); + String partyOrgIdPath = map.containsKey("idPath") ? map.get("idPath") : StrConstant.EPMETY_STR; + String partyOrgNamePath = map.containsKey("namePath") ? map.get("namePath") : StrConstant.EPMETY_STR; + orgInfo.setPartyOrgIdPath(partyOrgIdPath); + orgInfo.setPartyOrgNamePath(partyOrgNamePath); return orgInfo; }