宝塔服务器面板,一键全能部署及管理,送你10850元礼包,点我领取

String sql="select item_code from xt_dictionary_item where type_id='32' and parent_itemid='0' order by view_index";
Delegate dg=new Delegate("");
CachedRowSet crs = dg.getRowSet(sql);

Dictionary dd = Dictionary.getInstance();

while(crs.next()){
Map<String,String> map=new HashMap<>();
map.put("item_code", crs.getString("item_code"));
map.put("typename", dd.getDicItemName("ZD_20003", crs.getString("item_code")));
list.add(map);
}