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