@Override
public List<DisasterStatisticsVO> getDisasterData() {
List<DisasterStatisticsVO> statisticDataList=null;
String s = HttpUtil.get(DISASTER_DATA_URL);
ObjectMapper mapper = new ObjectMapper();
try {
DisResponse disResponse = mapper.readValue(s, DisResponse.class);
if ("200".equals(disResponse.getCode())) {
// 现在你可以访问response对象中的数据了
statisticDataList = disResponse.getData();
}
} catch(IOException e){
e.printStackTrace();
}
return statisticDataList;
}