|
@ -423,13 +423,16 @@ public class DeviceServiceImpl implements IDeviceService { |
|
|
.firmwareStatus(DeviceFirmwareStatusEnum.NOT_UPGRADE) |
|
|
.firmwareStatus(DeviceFirmwareStatusEnum.NOT_UPGRADE) |
|
|
.videoId(dockVideoId) |
|
|
.videoId(dockVideoId) |
|
|
.proId(ObjectUtil.isNotEmpty(entity.getProId())?entity.getProId():null) |
|
|
.proId(ObjectUtil.isNotEmpty(entity.getProId())?entity.getProId():null) |
|
|
|
|
|
.latitude(entity.getLatitude()) |
|
|
|
|
|
.longitude(entity.getLongitude()) |
|
|
|
|
|
.height(entity.getHeight()) |
|
|
.thingVersion(entity.getVersion()).build(); |
|
|
.thingVersion(entity.getVersion()).build(); |
|
|
} catch (CloudSDKException e) { |
|
|
} catch (CloudSDKException e) { |
|
|
log.error(e.getLocalizedMessage() + "Entity: {}", entity); |
|
|
log.error(e.getLocalizedMessage() + "Entity: {}", entity); |
|
|
} |
|
|
} |
|
|
DeviceDTO deviceDTO = builder.build(); |
|
|
DeviceDTO deviceDTO = builder.build(); |
|
|
if(deviceDTO.getDomain() != null && deviceDTO.getDomain().getDomain() == 3 && deviceDTO.getLatitude() != null){ |
|
|
if(deviceDTO.getDomain() != null && deviceDTO.getDomain().getDomain() == 3 && deviceDTO.getLatitude() != null){ |
|
|
Optional<OsdDockDrone> deviceOsd = deviceRedisService.getDeviceOsd(entity.getDeviceSn(), OsdDockDrone.class); |
|
|
Optional<OsdDock> deviceOsd = deviceRedisService.getDeviceOsd(entity.getDeviceSn(), OsdDock.class); |
|
|
if(!deviceOsd.isEmpty()){ |
|
|
if(!deviceOsd.isEmpty()){ |
|
|
deviceDTO.setLatitude(deviceOsd.get().getLatitude()); |
|
|
deviceDTO.setLatitude(deviceOsd.get().getLatitude()); |
|
|
deviceDTO.setLongitude(deviceOsd.get().getLongitude()); |
|
|
deviceDTO.setLongitude(deviceOsd.get().getLongitude()); |
|
@ -748,6 +751,9 @@ public class DeviceServiceImpl implements IDeviceService { |
|
|
.compatibleStatus(dto.getFirmwareStatus() == null ? null : |
|
|
.compatibleStatus(dto.getFirmwareStatus() == null ? null : |
|
|
DeviceFirmwareStatusEnum.CONSISTENT_UPGRADE != dto.getFirmwareStatus()) |
|
|
DeviceFirmwareStatusEnum.CONSISTENT_UPGRADE != dto.getFirmwareStatus()) |
|
|
.deviceDesc(dto.getDeviceDesc()) |
|
|
.deviceDesc(dto.getDeviceDesc()) |
|
|
|
|
|
.latitude(dto.getLatitude()) |
|
|
|
|
|
.longitude(dto.getLongitude()) |
|
|
|
|
|
.height(dto.getHeight()) |
|
|
.proId(dto.getProId() == null ? null : dto.getProId()) |
|
|
.proId(dto.getProId() == null ? null : dto.getProId()) |
|
|
.build(); |
|
|
.build(); |
|
|
} |
|
|
} |
|
|