|
|
@ -410,30 +410,31 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public IcPartyOrgInfo queryIcPartyOrgInfo(String icPartyOrgId) { |
|
|
|
IcPartyOrgEntity orgEntity=baseDao.selectById(icPartyOrgId); |
|
|
|
if (null == orgEntity) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
IcPartyOrgInfo orgInfo=new IcPartyOrgInfo(); |
|
|
|
orgInfo.setId(icPartyOrgId); |
|
|
|
IcPartyOrgEntity orgEntity=baseDao.selectById(icPartyOrgId); |
|
|
|
if (null != orgEntity) { |
|
|
|
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<String> 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<String> pids=new ArrayList<>(); |
|
|
|
pids.add(icPartyOrgId); |
|
|
|
|
|
|
|
List<String> names=new ArrayList<>(); |
|
|
|
names.add(orgEntity.getPartyOrgName()); |
|
|
|
List<String> names=new ArrayList<>(); |
|
|
|
names.add(orgEntity.getPartyOrgName()); |
|
|
|
|
|
|
|
Map<String,String> 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<String,String> 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; |
|
|
|
} |
|
|
|
|
|
|
|