com.ruoyi.system.domain.SysRoleMenu Java Examples
The following examples show how to use
com.ruoyi.system.domain.SysRoleMenu.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SysRoleServiceImpl.java From supplierShop with MIT License | 6 votes |
/** * 新增角色菜单信息 * * @param role 角色对象 */ public int insertRoleMenu(SysRole role) { int rows = 1; // 新增用户与角色管理 List<SysRoleMenu> list = new ArrayList<SysRoleMenu>(); 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); } return rows; }
Example #2
Source File: SysRoleServiceImpl.java From ruoyiplus with MIT License | 6 votes |
/** * 新增角色菜单信息 * * @param role 角色对象 */ public int insertRoleMenu(SysRole role) { int rows = 1; // 新增用户与角色管理 List<SysRoleMenu> list = new ArrayList<SysRoleMenu>(); 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); } return rows; }
Example #3
Source File: SysRoleServiceImpl.java From RuoYi with Apache License 2.0 | 6 votes |
/** * 新增角色菜单信息 * * @param role 角色对象 */ private int insertRoleMenu(SysRole role) { int rows = 1; // 新增用户与角色管理 List<SysRoleMenu> list = new ArrayList<>(); for (Long menuId : role.getMenuIds()) { SysRoleMenu rm = new SysRoleMenu(); rm.setRoleId(role.getRoleId()); rm.setMenuId(menuId); list.add(rm); } if (!CollectionUtils.isEmpty(list)) { rows = roleMenuMapper.batchRoleMenu(list); } return rows; }
Example #4
Source File: SysRoleMenuMapper.java From supplierShop with MIT License | 2 votes |
/** * 批量新增角色菜单信息 * * @param roleMenuList 角色菜单列表 * @return 结果 */ public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
Example #5
Source File: SysRoleMenuMapper.java From ruoyiplus with MIT License | 2 votes |
/** * 批量新增角色菜单信息 * * @param roleMenuList 角色菜单列表 * @return 结果 */ public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
Example #6
Source File: SysRoleMenuMapper.java From RuoYi with Apache License 2.0 | 2 votes |
/** * 批量新增角色菜单信息 * * @param roleMenuList 角色菜单列表 * @return 结果 */ int batchRoleMenu(List<SysRoleMenu> roleMenuList);