Commit a4c61f3b by yangll

优化停留点时常计算方式

1 parent e6edbf89
...@@ -170,7 +170,7 @@ public class MonitorServiceImpl implements MonitorService { ...@@ -170,7 +170,7 @@ public class MonitorServiceImpl implements MonitorService {
spm.setSn(sn); spm.setSn(sn);
spm.setBegintime(DateUtils.formatNormal(new Date((long) record.bgnTime * 1000))); spm.setBegintime(DateUtils.formatNormal(new Date((long) record.bgnTime * 1000)));
spm.setEndtime(DateUtils.formatNormal(new Date((long) record.endTime * 1000))); spm.setEndtime(DateUtils.formatNormal(new Date((long) record.endTime * 1000)));
spm.setDuration(DateUtils.formatTimeInSec((record.endTime - record.bgnTime))); spm.setDuration(DateUtils.formatTimeInSec(record.duration));
GpsLoc stayGps = record.stayGps; GpsLoc stayGps = record.stayGps;
spm.setLat(LocationUtil.latlng(stayGps.lat)); spm.setLat(LocationUtil.latlng(stayGps.lat));
spm.setLng(LocationUtil.latlng(stayGps.lng)); spm.setLng(LocationUtil.latlng(stayGps.lng));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!