员工修改角色权限bug修复
This commit is contained in:
parent
1226a2880e
commit
e5f44a4e7b
@ -222,6 +222,8 @@ public class CompanyStaffServiceImpl extends ServiceImpl<CompanyStaffMapper, Com
|
|||||||
if (ObjectUtil.isNotEmpty(staffRespVO.getRoleIds())){
|
if (ObjectUtil.isNotEmpty(staffRespVO.getRoleIds())){
|
||||||
Set<Long> roleIdes = staffRespVO.getRoleIds().stream().collect(Collectors.toSet());
|
Set<Long> roleIdes = staffRespVO.getRoleIds().stream().collect(Collectors.toSet());
|
||||||
permissionApi.assignUserRoleByRoleIds(staffRespVO.getUserId(), roleIdes);
|
permissionApi.assignUserRoleByRoleIds(staffRespVO.getUserId(), roleIdes);
|
||||||
|
}else {
|
||||||
|
permissionApi.assignUserRoleByRoleIds(staffRespVO.getUserId(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 修改员工表 */
|
/* 修改员工表 */
|
||||||
|
Loading…
Reference in New Issue
Block a user