分页页面实体类

分页页面实体类

package com.yl.bean;

import java.util.List;


public class PageInfo {
    private Integer pageCode;//当前页码
    private Integer pageSize;//每页数据条数
    private Integer totalPage;//总页数
    private Integer totalCount;//总数据条数
    private List<Object> objectList;//用来存储查询出来的结果集
    private Integer start;//查询起始位置

    public Integer getPageCode() {
        return pageCode;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public List<Object> getObjectList() {
        return objectList;
    }

    public Integer getStart() {
        return (pageCode-1)*pageSize;
    }

    public Integer getTotalPage() {
        return totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
    }

    public void setPageCode(Integer pageCode) {
        this.pageCode = pageCode;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public void setObjectList(List<Object> objectList) {
        this.objectList = objectList;
    }
}
上一篇:day36-37(前端分页 uat部署)


下一篇:自学RF定位下拉框改变页码pagesize