fix(多租户):多租户数据接口和数据表结构,noIgnoreSqls逻辑添加

This commit is contained in:
2025-05-15 09:55:18 +08:00
parent ee0a877345
commit 4beecb5d3d
12 changed files with 81 additions and 52 deletions
@@ -4,7 +4,6 @@ import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -38,4 +37,12 @@ public class TenantProperties {
"com.central.user.mapper.SysRoleMapper.findAll",
"com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds"
);
/**
* 忽略租户的SQL
*/
private List<String> noIgnoreSqls = Arrays.asList(
"com.central.user.mapper.SysRoleMapper.findAll",
"com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds"
);
}