JOIN

List<Map<String,Object>> list = userOrganPkDao.getModelById(model.getId());
if(list.size() > 0) {
vo.setOrgIds(Joiner.on(",").join(list.stream().map(e->e.get("id").toString()).collect(Collectors.toList())));
vo.setOrgNames(Joiner.on(",").join(list.stream().map(e->e.get("name").toString()).collect(Collectors.toList())));
} else {
vo.setOrgIds("");
vo.setOrgNames("");
}
posted @ 2019-09-19 14:51  carjayal  阅读(162)  评论(0编辑  收藏  举报