修复管理员角色授权的问题

This commit is contained in:
YunaiV 2019-03-12 19:49:40 +08:00
parent 56f9fb1496
commit 0fa5326f0a
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class AdminServiceImpl implements AdminService {
}
// TODO 芋艿这里先简单实现即方式是删除老的分配的角色关系然后添加新的分配的角色关系
// 标记管理员角色源关系都为删除
adminRoleMapper.updateToDeletedByRoleId(updateAdminId);
adminRoleMapper.updateToDeletedByAdminId(updateAdminId);
// 创建 RoleResourceDO 数组并插入到数据库
if (!roleIds.isEmpty()) {
List<AdminRoleDO> adminRoleDOs = roleIds.stream().map(roleId -> {