فهرست منبع

如果当前车辆与校正站点距离2km内,才添加入口。

zhengqiang 4 سال پیش
والد
کامیت
91ad0fc70f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      web/src/main/java/com/jpsoft/bus/modules/driver/controller/DriverApiController.java

+ 2 - 2
web/src/main/java/com/jpsoft/bus/modules/driver/controller/DriverApiController.java

@@ -1135,8 +1135,8 @@ public class DriverApiController {
             }
 
             if(vehicleInfo.getLongitude()!=null && vehicleInfo.getLatitude()!=null) {
-                //如果当前车辆与校正站点距离1km内
-                if (gpsService.matchDistance(currentStation,vehicleInfo,1000)){
+                //如果当前车辆与校正站点距离2km内
+                if (gpsService.matchDistance(currentStation,vehicleInfo,2000)){
                     //创建一个站点附属站点
                     StationSubInfo stationSubInfo = stationSubInfoService.findByStationIdStartEnd(currentStationId, shiftInfo.getStartStationId(), shiftInfo.getEndStationId());
                     if (stationSubInfo == null) {