Browse Source

获取飞行日志,任务完成,添加任务结束时间

tags/v1.3.1
wanjing 1 year ago
parent
commit
6c2a4ba5dc
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/fly/log/FlyLogByNormalService.java
  2. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/fly/log/FlyLogByNormalService.java View File

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);
} }



+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml View File

<if test="updateUser != null and updateUser != ''"> update_user = #{updateUser},</if> <if test="updateUser != null and updateUser != ''"> update_user = #{updateUser},</if>
<if test="updateTime != null"> update_time = #{updateTime},</if> <if test="updateTime != null"> update_time = #{updateTime},</if>
<if test="executionStartTime != null"> execution_start_time = #{executionStartTime},</if> <if test="executionStartTime != null"> execution_start_time = #{executionStartTime},</if>
<if test="executionEndTime != null"> execution_endt_time = #{executionEndTime},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>

Loading…
Cancel
Save