Commit 6ebb85c1 by 杨林龙

1.50.0 开发1.50.0需求版本

1 parent d6fd82cc
...@@ -241,6 +241,7 @@ public class RiskAssessmentService { ...@@ -241,6 +241,7 @@ public class RiskAssessmentService {
log.info("deviceDTO===" + JSONUtil.toJsonStr(deviceDTO)); log.info("deviceDTO===" + JSONUtil.toJsonStr(deviceDTO));
// 设置常住地 // 设置常住地
List<ResidentDTO> residentList = remoteFeignResidentService.getResidentList(buildResidentRequest(deviceDTO.getSn())); List<ResidentDTO> residentList = remoteFeignResidentService.getResidentList(buildResidentRequest(deviceDTO.getSn()));
log.info(deviceDTO.getSn() + "===residentList===" + JSONUtil.toJsonStr(residentList));
// 常驻地,是“截止目前”的条件,选驻留次数最多的那个 // 常驻地,是“截止目前”的条件,选驻留次数最多的那个
residentList.stream().min((o1, o2) -> o2.getTotalTimes() - o1.getTotalTimes()).ifPresent(residentDTO -> { residentList.stream().min((o1, o2) -> o2.getTotalTimes() - o1.getTotalTimes()).ifPresent(residentDTO -> {
String addressByLngAndLat = remoteGpsBsService.getAddressByLngAndLat(residentDTO.getElng(), residentDTO.getElat()); String addressByLngAndLat = remoteGpsBsService.getAddressByLngAndLat(residentDTO.getElng(), residentDTO.getElat());
...@@ -249,6 +250,7 @@ public class RiskAssessmentService { ...@@ -249,6 +250,7 @@ public class RiskAssessmentService {
// 添加预测家庭地址和预测工作地址 // 添加预测家庭地址和预测工作地址
DeviceStayOften deviceStayOften = deviceStayOftenMapper.selectOneBySn(deviceDTO.getSn()); DeviceStayOften deviceStayOften = deviceStayOftenMapper.selectOneBySn(deviceDTO.getSn());
log.info(deviceDTO.getSn() + "===deviceStayOften===" + JSONUtil.toJsonStr(deviceStayOften));
if (Objects.nonNull(deviceStayOften)) { if (Objects.nonNull(deviceStayOften)) {
residentInformationVO.setHomeAddress(deviceStayOften.getHomeAddress()); residentInformationVO.setHomeAddress(deviceStayOften.getHomeAddress());
residentInformationVO.setWorkAddress(deviceStayOften.getWorkAddress()); residentInformationVO.setWorkAddress(deviceStayOften.getWorkAddress());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!