package com.order.beans; import java.util.ArrayList; import java.util.List; public class Page<T> { private int pagenum; //当前页码 private int pageStartIndex; //当前页面索引 private int pageSize; //页面大小 private int totalRows; //总记录数 private int totalPages; //总页码数 private List<T> datas; //当前页面的具体数据 public Page() { this.pagenum = 1; this.pageSize = 3; datas = new ArrayList<>(); } public int getPagenum() { return pagenum; } public void setPagenum(int pagenum) { this.pagenum = pagenum; } public int getPageStartIndex() { return (pagenum - 1)*3; } public void setPageStartIndex(int pageStartIndex) { this.pageStartIndex = pageStartIndex; } public int getPageSize() { return pageSize; } public void setPageSize(int pageSize) { this.pageSize = pageSize; } public int getTotalRows() { return totalRows; } public void setTotalRows(int totalRows) { this.totalRows = totalRows; } public int getTotalPages() { totalPages = totalRows/pageSize; if(totalRows%pageSize != 0){ totalPages++; } return totalPages; } public void setTotalPages(int totalPages) { this.totalPages = totalPages; } public List<T> getDatas() { return datas; } public void setDatas(List<T> datas) { this.datas = datas; } }

vincemokea LV5
5月5日
xiaoaitx LV8
1月1日
微信网友_6802139027345408 LV2
2023年12月31日
houhanlin33 LV3
2023年12月28日
0o0o0o LV2
2023年6月12日
6389181 LV7
2023年6月1日
苏拉德666 LV4
2023年5月15日
LCL10086 LV3
2022年12月29日
hihhhh LV6
2022年12月25日
短巷拥猫 LV12
2022年12月10日

vincemokea LV5
5月5日
currety
4月10日
暂无贡献等级
哪里的完整版 LV8
3月1日
xiaoaitx LV8
1月1日
今天的我也很辛苦
2024年12月25日
暂无贡献等级
taoshen95 LV16
2024年12月21日
897258976 LV8
2024年8月29日
柳咪华沙 LV7
2024年6月28日
微信网友_7051335135711232
2024年6月24日
暂无贡献等级
3049594659
2024年6月24日
暂无贡献等级