Przeglądaj źródła

根据机场返航

tags/v1.2.0^2
chengwang 1 rok temu
rodzic
commit
4d2613448a
2 zmienionych plików z 4 dodań i 11 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz