Commit 8181bc65 by 杨林龙

1.7.0 开发区域查车接口--优化区域查车设备号查询定位

1 parent 5b51da86
...@@ -114,10 +114,7 @@ public class RegionalSearchService { ...@@ -114,10 +114,7 @@ public class RegionalSearchService {
} }
return vehicleLocationDTOList.stream().peek(vehicleLocationDTO -> { return vehicleLocationDTOList.stream().peek(vehicleLocationDTO -> {
DeviceLocationDTO deviceLocationDTO = deviceMonitorInfoMap.get(vehicleLocationDTO.getSn()); DeviceLocationDTO deviceLocationDTO = deviceMonitorInfoMap.getOrDefault(vehicleLocationDTO.getSn(), new DeviceLocationDTO());
if (Objects.isNull(deviceLocationDTO)) {
return;
}
if (Objects.nonNull(deviceLocationDTO.getGpsLocation()) || Objects.nonNull(deviceLocationDTO.getBsLocation()) || Objects.nonNull(deviceLocationDTO.getWifiLocation())) { if (Objects.nonNull(deviceLocationDTO.getGpsLocation()) || Objects.nonNull(deviceLocationDTO.getBsLocation()) || Objects.nonNull(deviceLocationDTO.getWifiLocation())) {
BeanUtils.copyProperties(deviceLocationDTO, vehicleLocationDTO); BeanUtils.copyProperties(deviceLocationDTO, vehicleLocationDTO);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!