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

大佬想问下这个是啥意思 #14

Open
linsxw opened this issue Mar 22, 2023 · 4 comments
Open

大佬想问下这个是啥意思 #14

linsxw opened this issue Mar 22, 2023 · 4 comments

Comments

@linsxw
Copy link

linsxw commented Mar 22, 2023

.innerJoin(User, 'user', 'dept.createBy = user.userName')

注释这一行 后台就有数据,不注释就没数据。

@87789771
Copy link
Owner

这是内连接查询,是为了实现权限控制的。 你看一下用户表中的数据 createBy 字段是不是都有数据,如果没有, 你把 createBy字段 都加上数据就行了。。

@linsxw
Copy link
Author

linsxw commented Mar 22, 2023

好的~

@87789771
Copy link
Owner

嗯。直接都加 admin 就行了。

@87789771
Copy link
Owner

dept 表也看一下。 然后就是
image
lil这里数据权限分配好就行了。

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