|
|
|
|
|
|
|
|
log.info("获取的数据,dataObject={}", dataObject.toJSONString()); |
|
|
log.info("获取的数据,dataObject={}", dataObject.toJSONString()); |
|
|
String records = dataObject.get("records").toString(); |
|
|
String records = dataObject.get("records").toString(); |
|
|
List<Airport> airportList = JSONObject.parseArray(records, Airport.class); |
|
|
List<Airport> airportList = JSONObject.parseArray(records, Airport.class); |
|
|
log.info("获取records中的数据为:airportList={}", airportList); |
|
|
|
|
|
|
|
|
//log.info("获取records中的数据为:airportList={}", airportList); |
|
|
if(CollectionUtil.isNotEmpty(airportList) || airportList.size() != 0){ |
|
|
if(CollectionUtil.isNotEmpty(airportList) || airportList.size() != 0){ |
|
|
Airport airport = airportList.get(0); |
|
|
Airport airport = airportList.get(0); |
|
|
if(ObjectUtil.isNotNull(airport)){ |
|
|
if(ObjectUtil.isNotNull(airport)){ |