浏览代码

根据无人机id获取航线列表

tags/V1.0.1^2
chengwang 1年前
父节点
当前提交
c2032afffa
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirLineListService.java

+ 1
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirLineListService.java 查看文件

@@ -35,8 +35,7 @@ public class GetAirLineListService {
String airPortStr = HttpUtils.sendGet(url, param);
log.info("调用机场平台,获取航线列表:airPortStr={}",airPortStr);
//string----->JsonResult
//JsonResult<AirLineVO> jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);
JsonResult<AirLineVO> jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);

if (ObjectUtil.isEmpty(jsonResult) || (!ObjectUtil.isEmpty(Objects.requireNonNull(jsonResult).getData()) && jsonResult.getCode() != 0)) {
return JsonResult.error(AriportCodeEnum.BAD_REQUEST.getCode(), AriportCodeEnum.BAD_REQUEST.getMsg());

正在加载...
取消
保存