Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[兼容问题]: 描述 多租户插件下执行批量删除的问题 #6613

Open
3 tasks done
w3777 opened this issue Nov 29, 2024 · 3 comments
Open
3 tasks done

[兼容问题]: 描述 多租户插件下执行批量删除的问题 #6613

w3777 opened this issue Nov 29, 2024 · 3 comments

Comments

@w3777
Copy link

w3777 commented Nov 29, 2024

确认

  • 我使用的版本是最新版, 并且使用插件确认过项目里无依赖版本冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

当前程序版本

3.5.9

问题描述

引用mp的多租户插件下,继承BaseMapper并添加@InterceptorIgnore(tenantLine = "true")注解,sql仍然会拼接”tenant_id“字段
微信图片_20241129113819

微信图片_20241129113829
微信图片_20241129114022

详细堆栈日志

No response

@w3777
Copy link
Author

w3777 commented Nov 29, 2024

补一张图,继承的实现和BaseMapper是一样的
image

@miemieYaho
Copy link
Member

default方法不生效,只支持实际执行的method

@w3777
Copy link
Author

w3777 commented Nov 29, 2024

同样的方式,使用继承后的mapper也有@InterceptorIgnore(tenantLine = "true")注解,执行deleteById却不会拼接tenant_id字段,deleteById方法也是default方法
image

image

微信图片_20241129115733

nieqiurong added a commit that referenced this issue Dec 11, 2024
* 支持@InterceptorIgnore作用在default方法上.

#6613

* 新增插件跳过执行方法.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants