mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
忽略超管跳过orm层面自动塞入organid,超管分库分表相关的操作只看本机构下的
This commit is contained in:
+3
-2
@@ -48,8 +48,9 @@ public class OrganDatabaseInterceptor implements TenantLineHandler {
|
||||
@Override
|
||||
public boolean ignoreTable(String tableName) {
|
||||
return OrganContextHolder.isIgnore() // 情况一,全局忽略多组织
|
||||
|| CollUtil.contains(ignoreTables, tableName) // 情况二,忽略多组织的表
|
||||
|| isAdmin(); //情况三,忽略超级管理员
|
||||
|| CollUtil.contains(ignoreTables, tableName); // 情况二,忽略多组织的表
|
||||
//忽略超管跳过orm层面自动塞入organid,超管分库分表相关的操作只看本机构下的
|
||||
// || isAdmin(); //情况三,忽略超级管理员
|
||||
}
|
||||
private boolean isAdmin() {
|
||||
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
||||
|
||||
Reference in New Issue
Block a user