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

租户拦截器 添加表名作为别名 #6499

Closed
wants to merge 1 commit into from

Conversation

zyzyzy523
Copy link
Contributor

A表 id code name tenant_id 字段, B表 id ,a_id ,tenant_id, age 字段

sql = select A.id, A.name, b.age from A left join B b on A.id = b.a_id
这样的sql租户拦截器缺少别名,导致字段重复

@miemieYaho miemieYaho closed this Sep 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants