Commit 4ef1c69b authored by caotao's avatar caotao

结束里程的结束时间取开始处理的时间。

parent c1177dde
......@@ -95,7 +95,7 @@ ThreadCar extends Thread {
logger.info("---过滤后last信息为null时的数据::" + JSONObject.toJSONString(last));
}
//里程结束时间设置为最后一次的上报时间
Date endTime = new Date(last.getStartTime().getTime()/ 1000 * 1000);
Date endTime = new Date(startTime/ 1000 * 1000);
//实时库中的时间虽然坐标与记录的一致,但是更新时间可能最新,故可能会有记录的结束时间早于开始时间
long takeTime = (endTime.getTime() / 1000 * 1000) - (last.getStartTime().getTime() / 1000 * 1000);
if (takeTime < 0) {
......
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