Pre Merge pull request !333 from Yjoioooo/5.X

This commit is contained in:
Yjoioooo 2023-04-06 03:27:41 +00:00 committed by Gitee
commit a8f6d37aa3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);
}
/**