|
|
@@ -135,7 +135,7 @@ public class SyncAirDataService { |
|
|
|
} |
|
|
|
Inspection inspection = this.getInspection(response.getSerial()); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
log.info("没有正在飞行的任务,serial={}", response.getSerial()); |
|
|
|
log.info("没有正在飞行的任务,无法关联推送的灵嗅数据,serial={}", response.getSerial()); |
|
|
|
return JsonResult.error("没有正在飞行的任务"); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
@@ -143,7 +143,7 @@ public class SyncAirDataService { |
|
|
|
|
|
|
|
private Inspection getInspection(String serial) { |
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getEquipmentMountCode, serial) |
|
|
|
// .eq(Inspection::getEquipmentMountCode, serial) |
|
|
|
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode()) |
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.orderByDesc(Inspection::getCreateTime) |