Преглед на файлове

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

tags/v1.3.1
wanjing преди 1 година
родител
ревизия
6c2a4ba5dc
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  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 Целия файл

@@ -130,7 +130,6 @@ public class FlyLogByNormalService {
private void completedTask(Inspection inspection, TZHLFlyLogResponse flyLogResponse) {
// 任务完成
inspection.setStatus(InspectionStatusEnum.FLIGHT_COMPLETED.getCode());

this.updateInspection(inspection);

// 任务完成后自动生成报告
@@ -151,6 +150,7 @@ public class FlyLogByNormalService {
inspection.setStatus(inspection.getStatus());
inspection.setUpdateUser("");
inspection.setUpdateTime(DateUtils.now());
inspection.setExecutionEndTime(DateUtils.now());
inspectionMapper.updateStatus(inspection);
}


+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml Целия файл

@@ -200,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateUser != null and updateUser != ''"> update_user = #{updateUser},</if>
<if test="updateTime != null"> update_time = #{updateTime},</if>
<if test="executionStartTime != null"> execution_start_time = #{executionStartTime},</if>
<if test="executionEndTime != null"> execution_endt_time = #{executionEndTime},</if>
</trim>
where id = #{id}
</update>

Loading…
Отказ
Запис