kimi
2020-05-18 c8aee7b9bfd79cfd741d7e5692520f4f51a31a86
src/main/java/com/highdatas/mdm/pojo/Page.java
@@ -1,11 +1,40 @@
package com.highdatas.mdm.pojo;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Page  {
   
    private int pageSize;
    private long recordCount;
    private int pageNo;
    private int pages;
    private transient Integer beginNo;
    private transient Integer endNo;
    public int getBeginNo() {
        return beginNo;
    }
    public void setBeginNo(int beginNo) {
        this.beginNo = beginNo;
    }
    public int getEndNo() {
        return endNo;
    }
    public void setEndNo(int endNo) {
        this.endNo = endNo;
    }
    public int getPages() {
        return pages;
    }
    public void setPages(int pages) {
        this.pages = pages;
    }
    public Page(long recordCount) {
       this.pageSize = 20;
@@ -69,6 +98,9 @@
   }
   public String getLimitSQL() {
        if (beginNo != null && endNo != null) {
            return " limit " + beginNo + ", " + (endNo - beginNo);
        }
      return " limit " + getBeginRecordNo_1() + ", " + pageSize;
   }