处理OSD未知字段
This commit is contained in:
parent
1507e758cd
commit
880f98e8e1
|
|
@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|||
* @author ruoyi
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AirportOsdData {
|
||||
|
||||
@JsonProperty("working_current")
|
||||
|
|
|
|||
|
|
@ -95,9 +95,9 @@ public class DjiService {
|
|||
boolean isStateMessage = "state".equalsIgnoreCase(droneData.getMessageType());
|
||||
|
||||
// 更新 Dock 表的 lastActiveTime
|
||||
log.info("准备查询设备: device_sn={}", droneData.getDeviceSn());
|
||||
// log.info("准备查询设备: device_sn={}", droneData.getDeviceSn());
|
||||
Device device = deviceDomain.selectDeviceByDeviceSn(droneData.getDeviceSn());
|
||||
log.info("查询设备成功: device_sn={}, deviceId={}", droneData.getDeviceSn(), device != null ? device.getDeviceId() : null);
|
||||
// log.info("查询设备成功: device_sn={}, deviceId={}", droneData.getDeviceSn(), device != null ? device.getDeviceId() : null);
|
||||
if(Objects.nonNull(device)) {
|
||||
Aircraft aircraft = aircraftDomain.selectAircraftByDeviceId(device.getDeviceId());
|
||||
if(Objects.nonNull(aircraft)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue