显示班级

This commit is contained in:
Asriya
2025-08-08 09:01:43 +08:00
parent 24c11b4fe1
commit 325875b7c5
17 changed files with 434 additions and 6 deletions

View File

@@ -36,11 +36,11 @@ public class MybatisPlusConfig {
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
// 多租户插件 必须放到第一位
try {
TenantLineInnerInterceptor tenant = SpringUtils.getBean(TenantLineInnerInterceptor.class);
interceptor.addInnerInterceptor(tenant);
} catch (BeansException ignore) {
}
// try {
// TenantLineInnerInterceptor tenant = SpringUtils.getBean(TenantLineInnerInterceptor.class);
// interceptor.addInnerInterceptor(tenant);
// } catch (BeansException ignore) {
// }
// 数据权限处理
interceptor.addInnerInterceptor(dataPermissionInterceptor());
// 分页插件