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