jeecgboot不分页
时间: 2023-09-21 11:11:45 浏览: 151
jeecg-boot-master2.5.4.zip
在jeecgboot中,如果你不想对查询结果进行分页,你可以使用以下方法:
在service层的对应方法中,不使用分页的方法进行查询,例如:
```java
public List<PayTestresult> getList(QueryWrapper<PayTestresult> queryWrapper) {
return testresultMapper.selectList(queryWrapper);
}
```
然后在mapper层的SQL语句中,不使用分页查询的部分,例如:
```xml
<select id="getList" resultType="org.jeecg.modules.paytest.entity.PayTestresult">
SELECT b.descp, b.que_count, b.read_num, b.pic AS picPath, a.*
FROM pay_testresult a
LEFT JOIN pay_test b ON a.test_id = b.id
${ew.customSqlSegment}
</select>
```
这样就可以实现不对查询结果进行分页的功能了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [jeecgboot 多表连接查询 分页](https://blog.csdn.net/weixin_44934104/article/details/126618189)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Bootstrap table简单使用总结](https://download.csdn.net/download/weixin_38746701/13979891)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文