根据角色查询用户列表
This commit is contained in:
parent
3725c912b1
commit
6c4da0d728
|
|
@ -358,13 +358,14 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|||
int rows = 1;
|
||||
// 新增用户与角色管理
|
||||
List<SysRoleMenu> list = new ArrayList<SysRoleMenu>();
|
||||
for (Long menuId : role.getMenuIds())
|
||||
{
|
||||
if (role.getMenuIds() != null && role.getMenuIds().length > 0) {
|
||||
for (Long menuId : role.getMenuIds()) {
|
||||
SysRoleMenu rm = new SysRoleMenu();
|
||||
rm.setRoleId(role.getRoleId());
|
||||
rm.setMenuId(menuId);
|
||||
list.add(rm);
|
||||
}
|
||||
}
|
||||
if (list.size() > 0)
|
||||
{
|
||||
rows = roleMenuMapper.batchRoleMenu(list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue