|
@@ -170,11 +170,11 @@ public class GpsDataCallbackImpl implements GpsDataCallback {
|
|
|
}else {
|
|
|
//进入站点区域
|
|
|
//判断当前车辆是靠近还是远离站点
|
|
|
- if (distance1<distance2) {
|
|
|
+ if (distance1>distance2) {
|
|
|
shiftInfo.setCurrentStationStatus("2"); //靠近
|
|
|
shiftInfoService.update(shiftInfo);
|
|
|
}
|
|
|
- else if(distance2>distance1){
|
|
|
+ else if(distance1<distance2){
|
|
|
shiftInfo.setCurrentStationStatus("3"); //远离
|
|
|
shiftInfoService.update(shiftInfo);
|
|
|
}
|