|
|
@ -87,7 +87,7 @@ public class MyBatisConfig {
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
|
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.DM));
|
|
|
|
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
|
|
|
|
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
|
|
|
|
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
|
|
|
|
return interceptor;
|
|
|
|
return interceptor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|