QueryWrapper怎么分页查询
时间: 2023-10-15 09:58:52 浏览: 194
要使用QueryWrapper进行分页查询,可以按照以下步骤进行操作。首先,创建一个Page对象,指定页码和每页显示的数量。然后,创建一个QueryWrapper对象,并根据需要添加查询条件,比如使用like方法进行模糊匹配。最后,调用mapper中的getPageList方法,传入Page对象和QueryWrapper对象作为参数,即可实现分页查询。具体的实现可以参考中的代码示例。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [QueryWrapper多表联查分页、IPage分页(解决IPage+ QueryWrapper 多表联查、条件搜素、模糊匹配的分页问题...](https://blog.csdn.net/LF15527554599/article/details/123298014)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Page、QueryWrapper自定义查询条件实现连表分页查询(一)](https://blog.csdn.net/weixin_43776126/article/details/126261446)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文