|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
package com.ruoyi.common.core.web.page;
|
|
2
|
2
|
|
|
|
3
|
+import com.ruoyi.common.core.text.Convert;
|
|
3
|
4
|
import com.ruoyi.common.core.utils.ServletUtils;
|
|
4
|
5
|
|
|
5
|
6
|
/**
|
|
|
@@ -40,8 +41,8 @@ public class TableSupport
|
|
40
|
41
|
public static PageDomain getPageDomain()
|
|
41
|
42
|
{
|
|
42
|
43
|
PageDomain pageDomain = new PageDomain();
|
|
43
|
|
- pageDomain.setPageNum(ServletUtils.getParameterToInt(PAGE_NUM));
|
|
44
|
|
- pageDomain.setPageSize(ServletUtils.getParameterToInt(PAGE_SIZE));
|
|
|
44
|
+ pageDomain.setPageNum(Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1));
|
|
|
45
|
+ pageDomain.setPageSize(Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10));
|
|
45
|
46
|
pageDomain.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN));
|
|
46
|
47
|
pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC));
|
|
47
|
48
|
pageDomain.setReasonable(ServletUtils.getParameterToBool(REASONABLE));
|