mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-23 23:09:47 +08:00
!333 处理多余的角色删除操作,合并到insertUserRole
Merge pull request !333 from Yjoioooo/5.X
This commit is contained in:
@ -330,9 +330,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void insertUserAuth(Long userId, Long[] roleIds) {
|
||||
userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>()
|
||||
.eq(SysUserRole::getUserId, userId));
|
||||
insertUserRole(userId, roleIds, false);
|
||||
insertUserRole(userId, roleIds, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user