|
|
@@ -9,6 +9,7 @@ import com.tuoheng.admin.entity.domain.AirDataExport; |
|
|
|
import com.tuoheng.admin.entity.domain.AirDataType; |
|
|
|
import com.tuoheng.admin.entity.domain.Inspection; |
|
|
|
import com.tuoheng.admin.entity.request.report.ExportReportRequest; |
|
|
|
import com.tuoheng.admin.enums.InspectionStatusEnum; |
|
|
|
import com.tuoheng.admin.enums.MarkEnum; |
|
|
|
import com.tuoheng.admin.mapper.AirDataExportMapper; |
|
|
|
import com.tuoheng.admin.mapper.AirDataMapper; |
|
|
@@ -135,6 +136,10 @@ public class ExportReportService { |
|
|
|
log.info("导出报告,任务不存在,inspectionId={}", request.getInspectionId()); |
|
|
|
throw new ServiceException("任务不存在"); |
|
|
|
} |
|
|
|
if (InspectionStatusEnum.FLIGHT_COMPLETED.getCode() != inspection.getStatus()) { |
|
|
|
log.info("导出报告,只有完成的任务才能导出报告,inspectionId={}", request.getInspectionId()); |
|
|
|
throw new ServiceException("只有完成的任务才能导出报告"); |
|
|
|
} |
|
|
|
return JsonResult.success(inspection); |
|
|
|
} |
|
|
|
|