@@ -88,4 +88,19 @@ public class FlightData extends BaseEntity { | |||
*/ | |||
private Integer isSrt; | |||
/** | |||
* 距离机场距离 | |||
*/ | |||
private String distHome; | |||
/** | |||
* 飞行速度 | |||
*/ | |||
private String speed; | |||
/** | |||
* 遥测信息 | |||
*/ | |||
private String ysingal; | |||
} |
@@ -52,4 +52,16 @@ public class InspectionRequest implements Serializable { | |||
@NotNull(message = "时间戳不能为空!") | |||
private String timestamp; | |||
/** | |||
* 水平速度 | |||
*/ | |||
private String hspeed; | |||
/** | |||
*遥测信息 | |||
*/ | |||
private String ysingal; | |||
} |
@@ -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); |