/** * list 结构根据hotelId放在map中. * * @param list * @return map */ public Map<String, String> list2Map(List<MobileHotelDest> list) { Map<String, String> resutlMap = new HashMap<String, String>(); if (null != list && list.size() > 0) { for (int i = 0; i < list.size(); i++) { MobileHotelDest mhl = list.get(i); resutlMap.put(mhl.getCityCode(), mhl.getHotelgeoNodeVersion()); } } return resutlMap; }