|
|
@@ -26,9 +26,8 @@ public class IndexServiceImpl implements IndexService{ |
|
|
|
@Override |
|
|
|
public JsonResult getAirportMsg(Integer airportId) { |
|
|
|
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus"; |
|
|
|
String param = "airportId" + airportId; |
|
|
|
String param = "airportId=" + airportId; |
|
|
|
String result = HttpUtils.sendGet(url, param); |
|
|
|
//JSONObject jsonObject = JSON.parseObject(result); |
|
|
|
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); |
|
|
|
AirportMsgVo airportMsgVo = new AirportMsgVo(); |
|
|
|
JSONObject dataObject = (JSONObject) JSONObject.toJSON(jsonResult.getData()); |