|
@@ -1,15 +1,15 @@
|
|
|
package com.ruoyi.common.core.page;
|
|
|
|
|
|
import com.ruoyi.common.core.text.Convert;
|
|
|
+import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.ServletUtils;
|
|
|
|
|
|
/**
|
|
|
* 表格数据处理
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
*/
|
|
|
-public class TableSupport
|
|
|
-{
|
|
|
+public class TableSupport {
|
|
|
/**
|
|
|
* 当前记录起始索引
|
|
|
*/
|
|
@@ -35,22 +35,26 @@ public class TableSupport
|
|
|
*/
|
|
|
public static final String REASONABLE = "reasonable";
|
|
|
|
|
|
+ /**
|
|
|
+ * 是否进行分页操作
|
|
|
+ */
|
|
|
+ public static final String ISENABLEPAGING = "isEnablePaging";
|
|
|
+
|
|
|
/**
|
|
|
* 封装分页对象
|
|
|
*/
|
|
|
- public static PageDomain getPageDomain()
|
|
|
- {
|
|
|
+ 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.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN));
|
|
|
pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC));
|
|
|
pageDomain.setReasonable(ServletUtils.getParameterToBool(REASONABLE));
|
|
|
+ pageDomain.setIsEnablePaging(ServletUtils.getParameterToBool(ISENABLEPAGING));
|
|
|
return pageDomain;
|
|
|
}
|
|
|
|
|
|
- public static PageDomain buildPageRequest()
|
|
|
- {
|
|
|
+ public static PageDomain buildPageRequest() {
|
|
|
return getPageDomain();
|
|
|
}
|
|
|
}
|