mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
update docs
This commit is contained in:
parent
7f7c71d049
commit
d214d34187
@ -113,7 +113,7 @@ DELETE FROM tb_article where id = ? and tenant_id in (?, ?, ?)
|
|||||||
|
|
||||||
在某些场景下,在增删改查等操作,我们可能需要忽略租户条件,此时可以使用如下代码:
|
在某些场景下,在增删改查等操作,我们可能需要忽略租户条件,此时可以使用如下代码:
|
||||||
|
|
||||||
```sql
|
```java
|
||||||
try {
|
try {
|
||||||
TenantManager.ignoreTenantCondition()
|
TenantManager.ignoreTenantCondition()
|
||||||
|
|
||||||
@ -124,4 +124,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
当然,TenantFactory 返回空数据,也会忽略 tenant 条件。
|
当然,除此之外,`TenantFactory` 返回空数据,也会忽略 tenant 条件。
|
||||||
Loading…
x
Reference in New Issue
Block a user