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);
}