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

根据无人机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());

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