|
|
@@ -8,10 +8,7 @@ import com.tuoheng.admin.entity.Accident; |
|
|
|
import com.tuoheng.admin.entity.Inspection; |
|
|
|
import com.tuoheng.admin.entity.InspectionFile; |
|
|
|
import com.tuoheng.admin.entity.User; |
|
|
|
import com.tuoheng.admin.enums.AccidentStatusEnum; |
|
|
|
import com.tuoheng.admin.enums.InspectionStatusEnum; |
|
|
|
import com.tuoheng.admin.enums.InspectionTypeEnum; |
|
|
|
import com.tuoheng.admin.enums.MarkEnum; |
|
|
|
import com.tuoheng.admin.enums.*; |
|
|
|
import com.tuoheng.admin.mapper.AccidentMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionFileMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionMapper; |
|
|
@@ -70,6 +67,10 @@ public class AccidentVerifyService { |
|
|
|
// 无人机前往事故发生地点,事故地点上方悬停 |
|
|
|
this.callAirpor(accident, oldInspection); |
|
|
|
|
|
|
|
// 修改原巡检任务状态为已完成 |
|
|
|
oldInspection.setStatus(InspectionStatusEnum.FLIGHT_COMPLETED.getCode()); |
|
|
|
inspectionMapper.updateById(oldInspection); |
|
|
|
|
|
|
|
// 创建应急任务 |
|
|
|
this.createInspection(userId, oldInspection); |
|
|
|
|