|
|
@@ -6,6 +6,7 @@ import com.tuoheng.admin.entity.InspectionHistory; |
|
|
|
import com.tuoheng.admin.enums.InspectionStatusEnum; |
|
|
|
import com.tuoheng.admin.mapper.InspectionHistoryMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionMapper; |
|
|
|
import com.tuoheng.admin.service.report.generate.GenerateReportService; |
|
|
|
import com.tuoheng.admin.service.third.dsp.IDspService; |
|
|
|
import com.tuoheng.admin.tzhl.response.TZHLFlyLogResponse; |
|
|
|
import com.tuoheng.admin.tzhl.service.fly.data.FlyDataService; |
|
|
@@ -47,6 +48,9 @@ public class FlyLogByNormalService { |
|
|
|
@Autowired |
|
|
|
private FlyDataService flyDataService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private GenerateReportService generateReportService; |
|
|
|
|
|
|
|
public void getFlyLog(Inspection inspection, TZHLFlyLogResponse flyLogResponse) { |
|
|
|
log.info("获取飞行日志,status=normal,title={}", flyLogResponse.getTitle()); |
|
|
|
|
|
|
@@ -129,6 +133,9 @@ public class FlyLogByNormalService { |
|
|
|
|
|
|
|
this.updateInspection(inspection); |
|
|
|
|
|
|
|
// 任务完成后自动生成报告 |
|
|
|
generateReportService.generateByAuto(inspection); |
|
|
|
|
|
|
|
// 拉取飞行数据 |
|
|
|
flyDataService.getFlyData(inspection); |
|
|
|
|