소스 검색

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.2.0^2
wanjing 1 년 전
부모
커밋
98ff5675ce
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java

+ 8
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java 파일 보기

@@ -57,6 +57,7 @@ public class AccidentVerifyCompletedService {
*
* 1、向机场推送返舱指令,无人机返回机场
* 2、修改该事故状态为完成
* 3、应急任务状态改为已完成
*
* @param request
* @return
@@ -75,6 +76,13 @@ public class AccidentVerifyCompletedService {

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


Loading…
취소
저장