|
|
|
|
|
|
|
|
* |
|
|
* |
|
|
* 1、向机场推送返舱指令,无人机返回机场 |
|
|
* 1、向机场推送返舱指令,无人机返回机场 |
|
|
* 2、修改该事故状态为完成 |
|
|
* 2、修改该事故状态为完成 |
|
|
|
|
|
* 3、应急任务状态改为已完成 |
|
|
* |
|
|
* |
|
|
* @param request |
|
|
* @param request |
|
|
* @return |
|
|
* @return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.updateAccident(accident.getId(), userId); |
|
|
this.updateAccident(accident.getId(), userId); |
|
|
|
|
|
|
|
|
|
|
|
// 修改原巡检任务状态为已完成 |
|
|
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
|
|
.eq(Inspection::getId, accident.getAccidentInspectionId()) |
|
|
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode())); |
|
|
|
|
|
inspection.setStatus(InspectionStatusEnum.FLIGHT_COMPLETED.getCode()); |
|
|
|
|
|
inspectionMapper.updateById(inspection); |
|
|
|
|
|
|
|
|
// 无人机回仓 |
|
|
// 无人机回仓 |
|
|
this.droneReturn(accident.getInspectionId()); |
|
|
this.droneReturn(accident.getInspectionId()); |
|
|
|
|
|
|