Commit 829c798d by 王欣伟

Merge branch 'develop'

2 parents 4895bd4c 4c8e7f26
...@@ -56,6 +56,7 @@ public class VehicleMonitorConvert { ...@@ -56,6 +56,7 @@ public class VehicleMonitorConvert {
.ifPresent(stayPointListVO::setDuration); .ifPresent(stayPointListVO::setDuration);
stayPointListVO.setLocationType("GPS"); stayPointListVO.setLocationType("GPS");
// 谷歌经纬度
Optional.ofNullable(stayPointRecordDTO) Optional.ofNullable(stayPointRecordDTO)
.map(StayPointRecordDTO::getStayGps) .map(StayPointRecordDTO::getStayGps)
.map(GpsLocation::getElat) .map(GpsLocation::getElat)
...@@ -64,6 +65,16 @@ public class VehicleMonitorConvert { ...@@ -64,6 +65,16 @@ public class VehicleMonitorConvert {
.map(StayPointRecordDTO::getStayGps) .map(StayPointRecordDTO::getStayGps)
.map(GpsLocation::getElng) .map(GpsLocation::getElng)
.ifPresent(stayPointListVO::setElng); .ifPresent(stayPointListVO::setElng);
// 百度经纬度
Optional.ofNullable(stayPointRecordDTO)
.map(StayPointRecordDTO::getStayGps)
.map(GpsLocation::getBlat)
.ifPresent(stayPointListVO::setBlat);
Optional.ofNullable(stayPointRecordDTO)
.map(StayPointRecordDTO::getStayGps)
.map(GpsLocation::getBlng)
.ifPresent(stayPointListVO::setBlng);
stayPointListVO.setAddress(address); stayPointListVO.setAddress(address);
return stayPointListVO; return stayPointListVO;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!