Forráskód Böngészése

设备激活修改。

zhengqiang 4 éve
szülő
commit
0aa89bdc88

+ 3 - 2
common/src/main/java/com/jpsoft/bus/modules/bus/service/impl/GpsServiceImpl.java

@@ -327,6 +327,7 @@ public class GpsServiceImpl implements GpsService {
             StationInfo endStation = stationInfoService.get(shiftInfo.getEndStationId());
 
             boolean frontToEnd = true;
+            int distance = 100;
 
             if (stationInfoList.size() > 0) {
                 if(endStation.getId().equals(stationInfoList.get(0).getId())){
@@ -343,7 +344,7 @@ public class GpsServiceImpl implements GpsService {
                             continue;
                         }
 
-                        if(matchDistance(stationInfo,vehicleInfo,100)){
+                        if(matchDistance(stationInfo,vehicleInfo,distance)){
                            currentStationId = stationInfo.getId();
                            break;
                         }
@@ -358,7 +359,7 @@ public class GpsServiceImpl implements GpsService {
                             continue;
                         }
 
-                        if(matchDistance(stationInfo,vehicleInfo,100)){
+                        if(matchDistance(stationInfo,vehicleInfo,distance)){
                             currentStationId = stationInfo.getId();
                             break;
                         }