Browse Source

机场平台回调修改任务状态添加日志

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
1ad5cfdca4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportCallBackUpdateStatusService.java

+ 5
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportCallBackUpdateStatusService.java View File

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

Loading…
Cancel
Save