Browse Source

切换站点修改。

zhengqiang 4 năm trước cách đây
mục cha
commit
ee6ff0ef74

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

@@ -581,15 +581,15 @@ public class DriverApiController {
                 String currentStationId = shiftInfo.getCurrentStationId();
                 //班次的当前站点和GPS记录对比验证
                 //记录时间往后偏移1min
-                Date time = DateUtil.parse(recordTime,"yyyy-MM-dd HH:mm:ss");
-                Date offsetTime = DateUtil.offsetMinute(time,-1);
-
-                //查询gps记录表中此时间段间的记录
-                GpsDataInfo gpsDataInfo = gpsDataInfoService.findByDeviceNoAndCreateTime(vehicleInfo.getGpsDeviceNo(),time,offsetTime);
-
-                if (gpsDataInfo != null && StringUtils.isNotBlank(gpsDataInfo.getStationId())){
-                    currentStationId = gpsDataInfo.getStationId();
-                }
+//                Date time = DateUtil.parse(recordTime,"yyyy-MM-dd HH:mm:ss");
+//                Date offsetTime = DateUtil.offsetMinute(time,-1);
+//
+//                //查询gps记录表中此时间段间的记录
+//                GpsDataInfo gpsDataInfo = gpsDataInfoService.findByDeviceNoAndCreateTime(vehicleInfo.getGpsDeviceNo(),time,offsetTime);
+//
+//                if (gpsDataInfo != null && StringUtils.isNotBlank(gpsDataInfo.getStationId())){
+//                    currentStationId = gpsDataInfo.getStationId();
+//                }
 
                 passengerInfoService.passengerFace(vehicleInfo, shiftInfo, retFileUrl, recordTime, currentStationId,libId, personId,localImageUrl);
                 messageResult.setResult(true);