瀏覽代碼

切换站点修改。

zhengqiang 4 年之前
父節點
當前提交
ee6ff0ef74
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      web/src/main/java/com/jpsoft/bus/modules/driver/controller/DriverApiController.java

+ 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);