Commit fe5471c1 authored by caotao's avatar caotao

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

parent e89864e9
......@@ -79,9 +79,7 @@ public class ThreadCarMileageTreatment extends Thread {
&& Obj.getDoubleValue("FireCar_Latitude") != 0) {
filterList.add(list.get(j));
// 获取第一个不为空的坐标
if (lastObj == null) {
lastObj = Obj;
}
lastObj = Obj;
}
}
Log.info("----------------------------------------lastobj----------------------"+lastObj.toJSONString());
......@@ -116,7 +114,7 @@ public class ThreadCarMileageTreatment extends Thread {
}
last.setTravel(new BigDecimal(travel / 1000).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue());
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