首页 > 其他 > 详细

取Map<String,site>map中的全部key

时间:2016-07-31 17:22:36      阅读:282      评论:0      收藏:0      [点我收藏+]

Map<String,Site> siteMap = conference.getSiteList();

Set<String> keyList = siteMap.keySet();//得到key集合

Iterator<String> it = keyList.iterator();//遍历key
while(it.hasNext()){
ConfModelVsDept ConfModelVsDept = new ConfModelVsDept();
String uri = it.next();
Terminal terminal = terminalDao.queryByUri(uri);
ConfModelVsDept.setConfId(model.getId());
ConfModelVsDept.setUnitId(model.getUnitId());
ConfModelVsDept.setUnit(model.getUnit());
ConfModelVsDept.setDeptId(model.getDeptId());
ConfModelVsDept.setDept(model.getUnit());
ConfModelVsDept.setUri(uri);
ConfModelVsDept.setTerminalId(terminal.getId());
if(terminal.getMcuName().equals("自动")){
ConfModelVsDept.setMcuId(0);
}
confModelVsDeptDao.save(ConfModelVsDept);
}

取Map<String,site>map中的全部key

原文:http://www.cnblogs.com/jcfxl/p/5723382.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!