This commit is contained in:
dute7liang
2024-01-07 16:42:24 +08:00
parent 31af6fdc76
commit fad404fe58
52 changed files with 257 additions and 176 deletions

View File

@@ -30,7 +30,7 @@ public class PageQuery implements Serializable {
* 分页大小
*/
@Schema(description = "分页大小")
private Integer pageSize;
private Integer pageSize = 20;
/**
* 当前页数
@@ -58,7 +58,8 @@ public class PageQuery implements Serializable {
/**
* 每页显示记录数 默认值 默认查全部
*/
public static final int DEFAULT_PAGE_SIZE = Integer.MAX_VALUE;
// public static final int DEFAULT_PAGE_SIZE = Integer.MAX_VALUE;
public static final int DEFAULT_PAGE_SIZE = 20;
public <T> Page<T> build() {
Integer pageNum = ObjectUtil.defaultIfNull(getPageNum(), DEFAULT_PAGE_NUM);