瀏覽代碼

1.乘客列表中增加金额显示。
2.查询最近站点时,最多只查n-2个站点,避免首尾两站相连。

zhengqiang 4 年之前
父節點
當前提交
8bccac426c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/src/main/java/com/jpsoft/bus/modules/bus/service/impl/GpsServiceImpl.java

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

@@ -329,7 +329,7 @@ public class GpsServiceImpl implements GpsService {
             StationInfo endStation = stationInfoService.get(shiftInfo.getEndStationId());
 
             boolean frontToEnd = true;
-            int maxPassStation = stationInfoList.size() - 1; //一次性最多查n-1个站点,避免环形
+            int maxPassStation = stationInfoList.size() - 2; //一次性最多查n-2个站点,避免环形
         //    int distance = 100;
 
             if (stationInfoList.size() > 0) {