Browse Source

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

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
7a2a4bda59
3 changed files with 29 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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 View File

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

Loading…
Cancel
Save