public static String getCodeByName(String cityName) throws Exception {
		// 参数检查
		if (cityName == null || "".equals(cityName.trim())) {
			throw new Exception("非法参数异常，请检查并确保入口参数不能为空或null！");
		}

		String cityCode = null;
		EnumSet<City> cities = EnumSet.allOf(City.class);
		for (Iterator<City> iterator = cities.iterator(); iterator.hasNext();) {
			City city = iterator.next();
			if (cityName.equals(city.getCityName())) {
				cityCode = city.getCityCode();
				break;
			}
		}
		return cityCode;
	}