|
@@ -293,6 +293,16 @@ public class CommonServiceImpl implements CommonService {
|
|
|
latitudeBd = latitudeBd.setScale(8, RoundingMode.HALF_UP); // 保留8位小数
|
|
|
double latitude = latitudeBd.doubleValue();
|
|
|
|
|
|
+ // 格式化纬度,保留两位小数
|
|
|
+ BigDecimal mapxBd = new BigDecimal(Double.toString(row.getDouble("mapx")));
|
|
|
+ mapxBd = mapxBd.setScale(8, RoundingMode.HALF_UP); // 保留8位小数
|
|
|
+ double mapx = mapxBd.doubleValue();
|
|
|
+
|
|
|
+ // 格式化纬度,保留两位小数
|
|
|
+ BigDecimal mapyBd = new BigDecimal(Double.toString(row.getDouble("mapy")));
|
|
|
+ mapyBd = mapyBd.setScale(8, RoundingMode.HALF_UP); // 保留8位小数
|
|
|
+ double mapy = mapyBd.doubleValue();
|
|
|
+
|
|
|
BoatPathVo boatPathVo = new BoatPathVo();
|
|
|
boatPathVo.setMmsi(row.getString("deviceid"));
|
|
|
boatPathVo.setDirection(direction);
|