员工修改角色权限bug修复

This commit is contained in:
xiao-fajia 2024-09-29 18:09:41 +08:00
parent 1226a2880e
commit e5f44a4e7b

View File

@ -222,6 +222,8 @@ public class CompanyStaffServiceImpl extends ServiceImpl<CompanyStaffMapper, Com
if (ObjectUtil.isNotEmpty(staffRespVO.getRoleIds())){
Set<Long> roleIdes = staffRespVO.getRoleIds().stream().collect(Collectors.toSet());
permissionApi.assignUserRoleByRoleIds(staffRespVO.getUserId(), roleIdes);
}else {
permissionApi.assignUserRoleByRoleIds(staffRespVO.getUserId(), null);
}
/* 修改员工表 */