fhx
2024-04-11 8aabd6f9a44fb4de7ef2c70ff0a15fc000f4b5d9
phis-feign/src/main/java/com/hz/his/dto/PageDto.java
@@ -1,10 +1,17 @@
package com.hz.his.dto;
import lombok.Data;
import java.util.List;
/**
 * @author ChenJiaHe
 * 分页扩展类*/
@Data
public class PageDto {
    /**标识*/
    private String id;
    /**当前页数*/
    private Integer pageNum;
    /**当前页显示条数*/
@@ -15,6 +22,9 @@
    private String parentId;
    /**分类标识*/
    private String typeId;
    private List<String> typeIdList;
    //appid
    private String appId;
    public Integer getPageNum() {
@@ -38,8 +48,8 @@
    }
    public Integer getPageSize() {
        if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 500){
            this.pageSize = 20;
        if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 800){
            this.pageSize = 800;
        }
        return this.pageSize;
    }
@@ -80,4 +90,12 @@
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
    public String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        this.appId = appId;
    }
}