|
|
@@ -37,12 +37,7 @@ public class AirportServiceImpl implements AirportService { |
|
|
|
return JsonResult.error(AriportCodeEnum.GET_NO_TENANT.getCode(), AriportCodeEnum.GET_NO_TENANT.getMsg()); |
|
|
|
} |
|
|
|
String url = tenant.getAirportUrl() + SystemConstant.API_AIRPORT_LIST; |
|
|
|
String param; |
|
|
|
try { |
|
|
|
param = "page=1&limit=1000&tenantName=" + URLEncoder.encode(tenant.getName(), "UTF-8"); |
|
|
|
} catch (UnsupportedEncodingException e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
String param = "page=1&limit=100&tenantCode=" + tenant.getCode(); |
|
|
|
String airPortStr = HttpUtils.sendGet(url, param); |
|
|
|
|
|
|
|
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); |