|
|
@@ -341,7 +341,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
// 修改角色信息
|
|
|
baseMapper.updateById(role);
|
|
|
// 删除角色与部门关联
|
|
|
- roleDeptMapper.delete(new LambdaQueryWrapper<SysRoleDept>().eq(SysRoleDept::getRoleId, role.getRoleId()));
|
|
|
+ roleDeptMapper.delete(new LambdaQueryWrapper<SysRoleDept>().eq(SysRoleDept::getRoleId, role.getRoleId()).eq(SysRoleDept::getPlatformCode, role.getPlatformCode()));
|
|
|
// 新增角色和部门信息(数据权限)
|
|
|
return insertRoleDept(bo);
|
|
|
}
|
|
|
@@ -381,6 +381,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
SysRoleDept rd = new SysRoleDept();
|
|
|
rd.setRoleId(role.getRoleId());
|
|
|
rd.setDeptId(deptId);
|
|
|
+ rd.setPlatformCode(role.getPlatformCode());
|
|
|
list.add(rd);
|
|
|
}
|
|
|
if (list.size() > 0) {
|