|
|
|
@ -36,9 +36,11 @@ public class MybatisPlusConfig { |
|
|
|
@Bean |
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() { |
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
|
|
|
// 添加分页插件并指定数据库类型(如 MySQL) |
|
|
|
// interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.SQL_SERVER)); |
|
|
|
|
|
|
|
// 添加分页插件并指定数据库类型 - rqrq |
|
|
|
PaginationInnerInterceptor paginationInterceptor = new PaginationInnerInterceptor(DbType.SQL_SERVER); |
|
|
|
// 设置最大分页条数 10000条记录 - rqrq |
|
|
|
paginationInterceptor.setMaxLimit(10000L); |
|
|
|
interceptor.addInnerInterceptor(paginationInterceptor); |
|
|
|
return interceptor; |
|
|
|
} |
|
|
|
|
|
|
|
|