Commit fe5471c1 authored by caotao's avatar caotao

车辆初始化时里程切割坐标结束坐标错误问题修复

parent e89864e9
...@@ -79,11 +79,9 @@ public class ThreadCarMileageTreatment extends Thread { ...@@ -79,11 +79,9 @@ public class ThreadCarMileageTreatment extends Thread {
&& Obj.getDoubleValue("FireCar_Latitude") != 0) { && Obj.getDoubleValue("FireCar_Latitude") != 0) {
filterList.add(list.get(j)); filterList.add(list.get(j));
// 获取第一个不为空的坐标 // 获取第一个不为空的坐标
if (lastObj == null) {
lastObj = Obj; lastObj = Obj;
} }
} }
}
Log.info("----------------------------------------lastobj----------------------"+lastObj.toJSONString()); Log.info("----------------------------------------lastobj----------------------"+lastObj.toJSONString());
if (lastObj == null) { if (lastObj == null) {
lastObj = new JSONObject(); lastObj = new JSONObject();
...@@ -116,7 +114,7 @@ public class ThreadCarMileageTreatment extends Thread { ...@@ -116,7 +114,7 @@ public class ThreadCarMileageTreatment extends Thread {
} }
last.setTravel(new BigDecimal(travel / 1000).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue()); last.setTravel(new BigDecimal(travel / 1000).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue());
Log.info("----------------------------------------last----------------------"+lastObj.toJSONString()); Log.info("----------------------------------------last----------------------"+lastObj.toJSONString());
wlCarMileageServiceImpl.updateById(last); // wlCarMileageServiceImpl.updateById(last);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment