/** * 异步请求商圈 * * @throws Exception */ public void ajaxBusiness() throws Exception { List<DictVo> dictVoes = new ArrayList<DictVo>(); Map<String, String> T_BUSINESS = DictManager.getType("T_BUSINESS"); Map<String, String> T_DISTRICT_BUSINESS = DictManager.getType("T_DISTRICT_BUSINESS"); Iterator<String> it = T_DISTRICT_BUSINESS.keySet().iterator(); while (it.hasNext()) { String key = it.next(); String code = T_DISTRICT_BUSINESS.get(key); if (code != null && code.equals(districtCode)) { DictVo dictVo = new DictVo(); dictVo.setCode(key); dictVo.setValue(T_BUSINESS.get(key)); dictVoes.add(dictVo); } } json(dictVoes); }
/** * 查询区域 * * @throws Exception */ public void searchDistrict() throws Exception { vo = DictManager.getType("T_DISTRICT"); }