67,513
社区成员
发帖
与我相关
我的任务
分享
List<Map<String,Object>> list = ...
String ids[] = new String[list.size()];
for(int i = 0; i < list.size(); i++) {
Map<String, Object> map = (Map<String, Object>)list.get(i);
ids[i] = map.get("N_SELF_CUST_PRIVILEGE_ID").toString();
}
List<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>();
int x=1;
for (FundShopDao fundShopDao : fundShopDaos) {
HashMap<String, Object> item = new HashMap<String, Object>();
item.put("xuhao", x++);
item.put("code", fundShopDao.getCode());
item.put("investobj", fundShopDao.getInvestObj());
item.put("opendate", fundShopDao.getOpendate());
item.put("scale", fundShopDao.getScale());
item.put("shortname", fundShopDao.getShortname());
item.put("type", fundShopDao.getType());
item.put("fundmangt", fundShopDao.getFundmangt());
data.add(item);
}
类似于这样转换吧