升级 mybatis-plus 到 3.2.0
This commit is contained in:
-11
@@ -3,7 +3,6 @@ package com.central.db.config;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.baomidou.mybatisplus.core.parser.ISqlParserFilter;
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.tenant.TenantHandler;
|
||||
import com.baomidou.mybatisplus.extension.plugins.tenant.TenantSqlParser;
|
||||
|
||||
@@ -45,14 +44,4 @@ public class DefaultMybatisPlusConfig {
|
||||
}
|
||||
return paginationInterceptor;
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印 sql,性能分析拦截器,不建议生产使用
|
||||
* 设置 dev test 环境开启
|
||||
*/
|
||||
@Bean
|
||||
@Profile({"dev","test"})
|
||||
public PerformanceInterceptor performanceInterceptor() {
|
||||
return new PerformanceInterceptor();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public class TenantAutoConfigure {
|
||||
* 获取租户id
|
||||
*/
|
||||
@Override
|
||||
public Expression getTenantId() {
|
||||
public Expression getTenantId(boolean where) {
|
||||
String tenant = TenantContextHolder.getTenant();
|
||||
if (tenant != null) {
|
||||
return new StringValue(TenantContextHolder.getTenant());
|
||||
|
||||
Reference in New Issue
Block a user