分页优化

This commit is contained in:
林华觞
2025-08-06 12:18:08 +08:00
parent 2cc4a5aeb6
commit 7c319a80a4

View File

@@ -5,7 +5,7 @@ import com.zf.foodpurchase.common.utils.ServletUtils;
/**
* 表格数据处理
*
*
* @author ruoyi
*/
public class TableSupport
@@ -40,9 +40,10 @@ public class TableSupport
*/
public static PageDomain getPageDomain()
{
// 如果没有传分页参数,增大默认分页大小
PageDomain pageDomain = new PageDomain();
pageDomain.setPageNum(Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1));
pageDomain.setPageSize(Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10));
pageDomain.setPageSize(Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 100000));
pageDomain.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN));
pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC));
pageDomain.setReasonable(ServletUtils.getParameterToBool(REASONABLE));