|
@@ -33,14 +33,14 @@ public class MybatisPlusConfig {
|
|
|
@Bean
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
- // 分页插件
|
|
|
- interceptor.addInnerInterceptor(paginationInnerInterceptor());
|
|
|
// 乐观锁插件
|
|
|
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
|
|
|
// 拼接租户
|
|
|
interceptor.addInnerInterceptor(tenantInterceptor);
|
|
|
// 拼接逻辑删除
|
|
|
interceptor.addInnerInterceptor(logicInterceptor);
|
|
|
+ // 分页插件
|
|
|
+ interceptor.addInnerInterceptor(paginationInnerInterceptor());
|
|
|
return interceptor;
|
|
|
}
|
|
|
|