添加备降点映射

This commit is contained in:
孙小云 2026-01-21 17:24:24 +08:00
parent e097e597f5
commit a3347f2983
2 changed files with 34 additions and 1 deletions

View File

@ -25,6 +25,35 @@ public class DeviceTelemetry {
* 机场独有状态 * 机场独有状态
*/ */
/**
* 备降点纬度
*/
public static final TelemetryKey<Double> Alternate_land_point_Latitude = TelemetryKey.of(
"alternate_land_point.latitude",
Double.class,
value -> {
if (value == null) return null;
if (value instanceof Number) {
return ((Number) value).doubleValue();
}
return Double.parseDouble(value.toString());
}
);
/**
* 备降点经度
*/
public static final TelemetryKey<Double> Alternate_land_point_Longitude = TelemetryKey.of(
"alternate_land_point.longitude",
Double.class,
value -> {
if (value == null) return null;
if (value instanceof Number) {
return ((Number) value).doubleValue();
}
return Double.parseDouble(value.toString());
}
);
/** /**
* 网络类型 {"1":"4G","2":"以太网"} * 网络类型 {"1":"4G","2":"以太网"}
@ -396,7 +425,9 @@ public class DeviceTelemetry {
Rainfall, Rainfall,
Position_State_Rtk_Number, Position_State_Rtk_Number,
Height_Limit, Height_Limit,
Distance_Limit_Status_Distance_Limit Distance_Limit_Status_Distance_Limit,
Alternate_land_point_Latitude,
Alternate_land_point_Longitude
); );
} }

View File

@ -76,6 +76,8 @@ public class BufferDeviceImpl implements IBufferDeviceService
dto.setDockName(dock.getDockName()); dto.setDockName(dock.getDockName());
dto.setDockLocation(dock.getDockLocation()); dto.setDockLocation(dock.getDockLocation());
dto.setDockIotId(device.getIotDeviceId()); dto.setDockIotId(device.getIotDeviceId());
dto.setSnNumber(device.getDeviceSn());
dto.setBindTime(device.getCreateTime().getTime());
List<DockAircraft> aircrafts = dockAircraftDomain.selectDockAircraftByDockId(dockId); List<DockAircraft> aircrafts = dockAircraftDomain.selectDockAircraftByDockId(dockId);