|
|
@ -5,6 +5,7 @@ import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.feign.ResultDataResolver; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
|
import com.epmet.commons.tools.utils.PidUtils; |
|
|
|
import com.epmet.constant.LevelConstant; |
|
|
|
import com.epmet.dao.*; |
|
|
@ -51,9 +52,14 @@ public class LingShanScreenServiceImpl implements LingShanScreenService, ResultD |
|
|
|
|
|
|
|
List<LingShanSpecialCrowdStatsByOrgResultDTO> rl = subOrgs.stream().map(sub -> { |
|
|
|
LingShanSpecialCrowdStatsByOrgResultDTO t = new LingShanSpecialCrowdStatsByOrgResultDTO(); |
|
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(sub.getOrgId()); |
|
|
|
t.setOrgId(sub.getOrgId()); |
|
|
|
t.setOrgName(sub.getOrgName()); |
|
|
|
t.setOrgType(sub.getOrgType()); |
|
|
|
if (agencyInfo != null) { |
|
|
|
t.setLongitude(agencyInfo.getLongitude()); |
|
|
|
t.setLatitude(agencyInfo.getLatitude()); |
|
|
|
} |
|
|
|
t.setOrgIdPath(PidUtils.convertPid2OrgIdPath(sub.getOrgId(), sub.getPids())); |
|
|
|
return t; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|