|
|
@@ -90,7 +90,9 @@ public class AirportCallBackUpdateStatusService { |
|
|
|
status = TaskStatusEnum.FAIL.getCode(); |
|
|
|
// throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "任务分析失败!"); |
|
|
|
} |
|
|
|
log.info("机场平台回调,执行中,开始修改应急任务数据"); |
|
|
|
updateEmergencyMissionStatusService.updateStatus(thMission, status); |
|
|
|
log.info("机场平台回调,执行中,修改应急任务数据结束"); |
|
|
|
} else if (AirPortTaskStatusEnum.WAIT.getCode() == missionStatusRequest.getStatus()) { |
|
|
|
log.info("被硬件调用,存任务状态:已完成"); |
|
|
|
// 机场飞行完成,立即修改任务状态为已完成 |
|
|
@@ -111,7 +113,10 @@ public class AirportCallBackUpdateStatusService { |
|
|
|
thMissionMapper.updateById(thMissionUpdate); |
|
|
|
|
|
|
|
status = TaskStatusEnum.COMPLETE.getCode(); |
|
|
|
|
|
|
|
log.info("机场平台回调,已完成,开始修改应急任务数据"); |
|
|
|
updateEmergencyMissionStatusService.updateStatus(thMission, status); |
|
|
|
log.info("机场平台回调,已完成,修改应急任务数据结束"); |
|
|
|
|
|
|
|
//硬件停止后,停止AI分析 |
|
|
|
this.stopAI(missionStatusRequest, thMission); |