代码优化
This commit is contained in:
parent
89d6a9755d
commit
674d4ac41a
@ -97,11 +97,15 @@ public class ReoprtHandler {
|
||||
if (!outOfChina) {
|
||||
EbikeTracking ebikeTracking = new EbikeTracking(deviceId, doubles[1], doubles[0]);
|
||||
operateFeignClient.saveEbikeTracking(ebikeTracking);
|
||||
double longitude = doubles[0];
|
||||
double latitude = doubles[1];
|
||||
//车辆静止,直接落库
|
||||
if (isMoving == '0') {
|
||||
//TODO:优化为算法计算存储,计算拐点等关键位置,而非单纯的等待2min的静止上报
|
||||
log.info("记录中控绑定的车辆位置,中控编号:{}", deviceId);
|
||||
operateFeignClient.changeLocation(deviceId,doubles[0], doubles[1]);
|
||||
operateFeignClient.changeLocation(deviceId,longitude, latitude);
|
||||
}else {
|
||||
//TODO:运动状态计算距离运营区边缘
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user