67,513
社区成员
发帖
与我相关
我的任务
分享
public class GetDictionary extends SqlMapClientDaoSupport{
public static Map<String,String> map = new HashMap<String,String>();
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getDictionary(){
Map map1= new HashMap();
map1.put("key", "xxxx");
List<DictionaryObj> list = this.getSqlMapClientTemplate().queryForList("dictionary.listTree",map1 ) ;
for(DictionaryObj dictionaryObj :list){
logger.debug(dictionaryObj.getDicCode() +"--"+ dictionaryObj.getDicValue());
map.put(dictionaryObj.getDicCode(), dictionaryObj.getDicValue());
}
System.out.println(map);
logger.info("加载数据字典成功!{}",list.size());
}
}