浏览代码

遥测数据入库添加飞行速度和遥测信息属性值

tags/v1.2.0^2
chengwang 1年前
父节点
当前提交
7a2a4bda59
共有 3 个文件被更改,包括 29 次插入0 次删除
  1. +15
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/FlightData.java
  2. +12
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/InspectionRequest.java
  3. +2
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/flightdata/query/QueryFlightDataTrackService.java

+ 15
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/FlightData.java 查看文件

@@ -88,4 +88,19 @@ public class FlightData extends BaseEntity {
*/
private Integer isSrt;

/**
* 距离机场距离
*/
private String distHome;

/**
* 飞行速度
*/
private String speed;

/**
* 遥测信息
*/
private String ysingal;

}

+ 12
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/InspectionRequest.java 查看文件

@@ -52,4 +52,16 @@ public class InspectionRequest implements Serializable {
@NotNull(message = "时间戳不能为空!")
private String timestamp;

/**
* 水平速度
*/
private String hspeed;

/**
*遥测信息
*/
private String ysingal;



}

+ 2
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/flightdata/query/QueryFlightDataTrackService.java 查看文件

@@ -45,6 +45,8 @@ public class QueryFlightDataTrackService {
flightData.setAltitude(null);
//机场传过来的高度是相对高度
flightData.setUltrasonic(inspectionRequest.getAltitude());
flightData.setSpeed(inspectionRequest.getHspeed());
flightData.setYsingal(inspectionRequest.getYsingal());

//将最新一条数据放入缓存,并设置过期时间
redisUtils.set(String.valueOf(inspection.getId()), flightData, 10);

正在加载...
取消
保存