Quellcode durchsuchen

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

tags/V1.0.1^2
chengwang vor 1 Jahr
Ursprung
Commit
c2032afffa
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen

@@ -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());

Laden…
Abbrechen
Speichern