|  |  |  | 
|---|
|  |  |  | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分页插件 | 
|---|
|  |  |  | interceptor.addInnerInterceptor(new PaginationInnerInterceptorIIL(DbType.MYSQL)); | 
|---|
|  |  |  | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 动态表名SQL解析器 | 
|---|
|  |  |  | DynamicTableNameInnerInterceptor dynamicTableNameInnerInterceptor = new DynamicTableNameInnerInterceptor(); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return interceptor; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /*@Bean | 
|---|
|  |  |  | public MybatisPlusInterceptor mybatisPlusInterceptor() { | 
|---|
|  |  |  | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分页插件 | 
|---|
|  |  |  | PaginationInnerInterceptorIIL paginationInnerInterceptorIIL = new PaginationInnerInterceptorIIL(DbType.MYSQL); | 
|---|
|  |  |  | paginationInnerInterceptorIIL.setMultiTableQueryName(multiTableQueryNames); | 
|---|
|  |  |  | interceptor.addInnerInterceptor(paginationInnerInterceptorIIL); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return interceptor; | 
|---|
|  |  |  | }*/ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|