|
|
@@ -43,13 +43,10 @@ public class ReversalFlightService { |
|
|
|
throw new ServiceException("机场id为空"); |
|
|
|
} |
|
|
|
//根据任务对应的机场查询对应任务id |
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getAirportId, request.getAirportId()) |
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())); |
|
|
|
if(ObjectUtils.isNotEmpty(inspection)){ |
|
|
|
request.setTaskId(Integer.valueOf(inspection.getId())); |
|
|
|
} |
|
|
|
// Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
// .eq(Inspection::getAirportId, request.getAirportId()) |
|
|
|
// .eq(Inspection::getMark, MarkEnum.VALID.getCode()) |
|
|
|
// .eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())); |
|
|
|
request.setZhilin("03"); |
|
|
|
//调用机场平台让飞机返航 |
|
|
|
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_REVERSAL_FLIGH; |