|
|
@@ -161,20 +161,10 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper, |
|
|
|
return JsonResult.error("机场接口返回数据为空"); |
|
|
|
} |
|
|
|
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); |
|
|
|
if (ObjectUtil.isEmpty(jsonResult) || (!ObjectUtil.isEmpty(Objects.requireNonNull(jsonResult).getData()) && jsonResult.getCode() != 0)) { |
|
|
|
assert jsonResult != null; |
|
|
|
return JsonResult.error(JSONObject.parseArray(JSONObject.parseObject(JSONObject.toJSONString(jsonResult.getData())).get("data").toString(), AirExecuteTaskVO.class), "执行任务失败!"); |
|
|
|
} else if (ObjectUtil.isEmpty(jsonResult.getData()) && jsonResult.getCode() != 0) { |
|
|
|
if (jsonResult.getCode() != 0) { |
|
|
|
return JsonResult.error(jsonResult.getMsg()); |
|
|
|
} else { |
|
|
|
ThMission thMissionUpdate = new ThMission(UpdateOrCreateEnum.UPDATE.getCode()); |
|
|
|
thMissionUpdate.setId(Integer.parseInt(missionId)); |
|
|
|
//修改执行时间为当前 |
|
|
|
thMissionUpdate.setExecutionStartTime(new Date()); |
|
|
|
missionMapper.updateById(thMissionUpdate); |
|
|
|
//返回执行结果 |
|
|
|
return JsonResult.success(jsonResult.getMsg()); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |