|
|
|
|
|
|
|
|
private void completedTask(Inspection inspection, TZHLFlyLogResponse flyLogResponse) { |
|
|
private void completedTask(Inspection inspection, TZHLFlyLogResponse flyLogResponse) { |
|
|
// 任务完成 |
|
|
// 任务完成 |
|
|
inspection.setStatus(InspectionStatusEnum.FLIGHT_COMPLETED.getCode()); |
|
|
inspection.setStatus(InspectionStatusEnum.FLIGHT_COMPLETED.getCode()); |
|
|
|
|
|
|
|
|
this.updateInspection(inspection); |
|
|
this.updateInspection(inspection); |
|
|
|
|
|
|
|
|
// 任务完成后自动生成报告 |
|
|
// 任务完成后自动生成报告 |
|
|
|
|
|
|
|
|
inspection.setStatus(inspection.getStatus()); |
|
|
inspection.setStatus(inspection.getStatus()); |
|
|
inspection.setUpdateUser(""); |
|
|
inspection.setUpdateUser(""); |
|
|
inspection.setUpdateTime(DateUtils.now()); |
|
|
inspection.setUpdateTime(DateUtils.now()); |
|
|
|
|
|
inspection.setExecutionEndTime(DateUtils.now()); |
|
|
inspectionMapper.updateStatus(inspection); |
|
|
inspectionMapper.updateStatus(inspection); |
|
|
} |
|
|
} |
|
|
|
|
|
|