|
|
@ -226,13 +226,13 @@ public class IcResiCollectServiceImpl extends BaseServiceImpl<IcResiCollectDao, |
|
|
|
CollectDetailResultDTO result = ConvertUtils.sourceToTarget(entity, CollectDetailResultDTO.class); |
|
|
|
result.setOrgIdPath(StringUtils.isBlank(entity.getPids()) ? entity.getAgencyId() : entity.getPids()+":"+entity.getAgencyId()); |
|
|
|
String[] split = result.getOrgIdPath().split(":"); |
|
|
|
List<OrgInfoResultDTO> orgInfoList = new ArrayList<>(); |
|
|
|
List<OrgInfoIdAndNameResultDTO> orgInfoList = new ArrayList<>(); |
|
|
|
for (String orgId : split) { |
|
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
|
if (null == agencyInfo){ |
|
|
|
throw new EpmetException("查询组织信息失败:"+orgId); |
|
|
|
} |
|
|
|
OrgInfoResultDTO orgInfoResultDTO = new OrgInfoResultDTO(orgId,agencyInfo.getOrganizationName()); |
|
|
|
OrgInfoIdAndNameResultDTO orgInfoResultDTO = new OrgInfoIdAndNameResultDTO(orgId,agencyInfo.getOrganizationName()); |
|
|
|
orgInfoList.add(orgInfoResultDTO); |
|
|
|
} |
|
|
|
result.setOrgIdPathList(orgInfoList); |
|
|
|