|
|
@@ -144,12 +144,10 @@ public class SyncAirDataService { |
|
|
|
|
|
|
|
private Inspection getInspection(String serial) { |
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
|
|
|
|
.eq(Inspection::getEquipmentMountCode, serial) |
|
|
|
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode()) |
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.orderByDesc(Inspection::getCreateTime) |
|
|
|
.last(" limit 1")); |
|
|
|
.orderByDesc(Inspection::getCreateTime)); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
return null; |
|
|
|
} |