ソースを参照

1、修改任务执行时间字段;2、去掉飞手平台回调审核状态;

tags/v1.0.0^2
wanjing 1年前
コミット
17f7bc1e4f
2個のファイルの変更2行の追加7行の削除
  1. +0
    -5
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/flyer/UpdateFlyerService.java
  2. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/ExecuteTaskService.java

+ 0
- 5
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/flyer/UpdateFlyerService.java ファイルの表示

Integer status = request.getStatus(); Integer status = request.getStatus();
log.info("修改任务状态和飞手信息业务接口:状态:{}", status); log.info("修改任务状态和飞手信息业务接口:状态:{}", status);


// 如果任务审核未通过,状态改为待审核
if (status == TaskStatusEnum.AUDITFAILED.getCode()) {
request.setStatus(1);
}

if (status == TaskStatusEnum.INFLIGHT.getCode()) { if (status == TaskStatusEnum.INFLIGHT.getCode()) {
// 开始飞行 // 开始飞行
log.info("修改任务状态和飞手信息业务接口:开始飞行"); log.info("修改任务状态和飞手信息业务接口:开始飞行");

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/ExecuteTaskService.java ファイルの表示

JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);
if (jsonResult.getCode() != 0) { if (jsonResult.getCode() != 0) {
log.info("立即执行任务业务:机场接口返回结果:失败:{}", jsonResult.getMsg()); log.info("立即执行任务业务:机场接口返回结果:失败:{}", jsonResult.getMsg());

inspection.setStatus(InspectionStatusEnum.FLIGHT_FAILED.getCode()); inspection.setStatus(InspectionStatusEnum.FLIGHT_FAILED.getCode());
this.updateInspection(userId, inspection); this.updateInspection(userId, inspection);


} }


/** /**
* 修改任务执行状态
* 修改任务执行时数据
* *
* @param userId * @param userId
* @param inspection * @param inspection
inspection.setStatus(inspection.getStatus()); inspection.setStatus(inspection.getStatus());
inspection.setUpdateUser(userId); inspection.setUpdateUser(userId);
inspection.setUpdateTime(DateUtils.now()); inspection.setUpdateTime(DateUtils.now());
inspection.setExecutionStartTime(DateUtils.now());
inspectionMapper.update(inspection); inspectionMapper.update(inspection);
} }



読み込み中…
キャンセル
保存