소스 검색

根据机场返航

tags/v1.2.0^2
chengwang 1 년 전
부모
커밋
4d2613448a
2개의 변경된 파일4개의 추가작업 그리고 11개의 파일을 삭제
  1. +0
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/accident/ReversalFlightRequest.java
  2. +4
    -7
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/ReversalFlightService.java

+ 0
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/accident/ReversalFlightRequest.java 파일 보기

@@ -14,10 +14,6 @@ public class ReversalFlightRequest {
*/
private Integer airportId;

/**
* 任务id
*/
private Integer taskId;

/**
* 校验数字符

+ 4
- 7
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/ReversalFlightService.java 파일 보기

@@ -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;

Loading…
취소
저장