<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version>
</dependency>
@Configuration
@EnableTransactionManagement
public class MybatisPlusConfiguration {
@Bean
@ConditionalOnMissingBean
public MybatisPlusInterceptor mybatisPlusInterceptor(){
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor());
return interceptor;
}
}
public AjaxResult list(Page page, @RequestParam String docType )
Page<KlbDocumentVo> selectDocPage(Page page, @Param("deptId") String deptId);