Commit b0362422 authored by huyuchen's avatar huyuchen

huyc 角色菜单相关接口修改

parent c9c13b5b
...@@ -52,8 +52,6 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo ...@@ -52,8 +52,6 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo
private final CacheManager cacheManager; private final CacheManager cacheManager;
private final SysRoleService sysRoleService;
/** /**
* @param roleId 角色 * @param roleId 角色
* @param menuIds 菜单ID拼成的字符串,每个id之间根据逗号分隔 * @param menuIds 菜单ID拼成的字符串,每个id之间根据逗号分隔
...@@ -62,11 +60,6 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo ...@@ -62,11 +60,6 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Boolean saveRoleMenus(Long roleId, String menuIds) { public Boolean saveRoleMenus(Long roleId, String menuIds) {
SysRole sysRole = sysRoleService.getById(roleId);
String roleType = "0";
// 系统内置
Assert.state(!roleType.equals(sysRole.getSystemFlag()),
MsgUtils.getMessage(ErrorCodes.SYS_ROLE_UPDATE_SYSTEM));
this.remove(Wrappers.<SysRoleMenu>query().lambda().eq(SysRoleMenu::getRoleId, roleId)); this.remove(Wrappers.<SysRoleMenu>query().lambda().eq(SysRoleMenu::getRoleId, roleId));
if (StrUtil.isBlank(menuIds)) { if (StrUtil.isBlank(menuIds)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment