预约面试功能开发
This commit is contained in:
@@ -15,6 +15,11 @@ public class TableSupport
|
||||
*/
|
||||
public static final String PAGE_NUM = "current";
|
||||
|
||||
/**
|
||||
* 兼容移动端使用的分页参数名
|
||||
*/
|
||||
public static final String PAGE_NUM_APP = "pageNum";
|
||||
|
||||
/**
|
||||
* 每页显示记录数
|
||||
*/
|
||||
@@ -41,7 +46,12 @@ public class TableSupport
|
||||
public static PageDomain getPageDomain()
|
||||
{
|
||||
PageDomain pageDomain = new PageDomain();
|
||||
pageDomain.setPageNum(Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1));
|
||||
// 兼容移动端 pageNum 和后台管理 current 两种分页参数名
|
||||
Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM));
|
||||
if (pageNum == null) {
|
||||
pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM_APP), 1);
|
||||
}
|
||||
pageDomain.setPageNum(pageNum);
|
||||
pageDomain.setPageSize(Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10));
|
||||
pageDomain.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN));
|
||||
pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC));
|
||||
|
||||
Reference in New Issue
Block a user