【代码修复】全局:BaseMapperX 的分页 pageSize 不分页判断不对的问题
parent
468d4cc6f6
commit
ec62043a65
|
@ -56,7 +56,7 @@ public interface BaseMapperX<T> extends MPJBaseMapper<T> {
|
||||||
|
|
||||||
default <D> PageResult<D> selectJoinPage(PageParam pageParam, Class<D> clazz, MPJLambdaWrapper<T> lambdaWrapper) {
|
default <D> PageResult<D> selectJoinPage(PageParam pageParam, Class<D> clazz, MPJLambdaWrapper<T> lambdaWrapper) {
|
||||||
// 特殊:不分页,直接查询全部
|
// 特殊:不分页,直接查询全部
|
||||||
if (PageParam.PAGE_SIZE_NONE.equals(pageParam.getPageNo())) {
|
if (PageParam.PAGE_SIZE_NONE.equals(pageParam.getPageSize())) {
|
||||||
List<D> list = selectJoinList(clazz, lambdaWrapper);
|
List<D> list = selectJoinList(clazz, lambdaWrapper);
|
||||||
return new PageResult<>(list, (long) list.size());
|
return new PageResult<>(list, (long) list.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue