Browse Source

特殊人群列表,增加所属组织的经纬度

master
wxz 2 years ago
parent
commit
3a000e56fd
  1. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/lingshan/LingShanSpecialCrowdStatsByOrgResultDTO.java
  2. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/LingShanScreenServiceImpl.java

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/lingshan/LingShanSpecialCrowdStatsByOrgResultDTO.java

@ -21,5 +21,7 @@ public class LingShanSpecialCrowdStatsByOrgResultDTO {
*/
private Integer quantity = 0;
private String longitude;
private String latitude;
}

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/LingShanScreenServiceImpl.java

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

Loading…
Cancel
Save