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