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

如果使用mybatisplus join多表查询,只希望主表有数据权限的控制,join表不要有数据权限关联,如何在mapper层控制 #676

Open
edwardshen3033 opened this issue Oct 18, 2024 · 0 comments

Comments

@edwardshen3033
Copy link

edwardshen3033 commented Oct 18, 2024

碰到问题,请在 https://github.com/YunaiV/ruoyi-vue-pro/issues 搜索是否存在相似的 issue。

不按照模板提交的 issue,会被系统自动删除。

基本信息

  • ruoyi-vue-pro 版本:
  • 操作系统:
  • 数据库:

你猜测可能的原因

(必填)我花费了 2-4 小时自查,发现可能的原因是:xxxxxx

复现步骤

第一步,
通过mybatisplus左关联合同和项目两张表,但只想查出来当前人创建的合同,要查出所有可以关联上的项目(即非自己创建的项目)
image

第二步,
结果查出的所有表都有数据权限控制,请问如何配置或设置可以做到只有contract表有权限控制,项目表没有权限控制(两个表都需要存在dept_id)
image

第三步,

报错信息

带上必要的截图

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

1 participant