Explorar o código

流媒体推流增加预留时间

gao.qiang hai 1 ano
pai
achega
b3d5e897cb

+ 8 - 1
business-service/src/main/java/com/ozs/entity/vo/BaseVehicleTerminalDto.java

@@ -34,13 +34,20 @@ public class BaseVehicleTerminalDto implements Serializable {
     /**
      * 行别
      */
-    private String lineDir;
+    private Integer lineDir;
 
     /**
      * 车辆行驶位置
      */
     private Integer travelMile;
 
+    /**
+     * 车辆行驶位置
+     */
+    private String travelMileName;
+
+    private String lineDirStr;
+
     /**
      * 车辆所在经度
      */

+ 3 - 1
business-service/src/main/java/com/ozs/service/impl/BaseCameraManagementServiceImpl.java

@@ -439,8 +439,10 @@ public class BaseCameraManagementServiceImpl extends ServiceImpl<BaseCameraManag
                 dto.setTime(new Date());
                 BaseRailwayManagement baseRailwayManagement = baseRailwayManagementMapper.selectOne(new QueryWrapper<BaseRailwayManagement>().eq("railway_code", baseVehicleTerminalDto.getRailwayCode()));
                 dto.setRailwayName(baseRailwayManagement.getRailwayName());
-                dto.setLineDir(baseVehicleTerminalDto.getLineDir());
                 String mils = AppendUtils.stringAppend(baseVehicleTerminalDto.getTravelMile());
+                dto.setTravelMileName(mils);
+                dto.setLineDirStr(baseVehicleTerminalDto.getLineDir() == 1 ? "上行" : "下行");
+                urlList.add(dto);
             }
         }
         return urlList;