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

disableAutoAddCorpCodeWhere #13

Closed
lhyxcxy opened this issue Oct 26, 2018 · 1 comment
Closed

disableAutoAddCorpCodeWhere #13

lhyxcxy opened this issue Oct 26, 2018 · 1 comment

Comments

@lhyxcxy
Copy link

lhyxcxy commented Oct 26, 2018

user.getSqlMap().getWhere().disableAutoAddCorpCodeWhere().and(columnName, queryType, value, num)

disableAutoAddCorpCodeWhere()方法表示什么意思,num表示什么

@think-gem
Copy link
Member

https://gitee.com/thinkgem/jeesite4/issues/INYD4

这个是多租户用的,为了方便快捷实现租户,默认情况下业务表只要包含租户字段,则自动添加租户条件。若不想自动添加,调用该方法即可。num其实就是索引值,columnName重复的情况下指定不同的num数值即可。

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