init
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
|
||||
<version>4.1.0</version>
|
||||
<version>4.2.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 离线IP地址定位库 -->
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user