| | |
| | | import com.github.pagehelper.PageInfo;
|
| | | import com.ruoyi.common.constant.HttpStatus;
|
| | | import com.ruoyi.common.utils.DateUtils;
|
| | | import com.ruoyi.common.utils.PageUtils;
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.common.utils.sql.SqlUtil;
|
| | |
| | | */
|
| | | protected void startPage()
|
| | | {
|
| | | PageDomain pageDomain = TableSupport.buildPageRequest();
|
| | | Integer pageNum = pageDomain.getPageNum();
|
| | | Integer pageSize = pageDomain.getPageSize();
|
| | | if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize))
|
| | | {
|
| | | String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy());
|
| | | PageHelper.startPage(pageNum, pageSize, orderBy);
|
| | | }
|
| | | PageUtils.startPage();
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 清理分页的线程变量
|
| | | */
|
| | | protected void clearPage()
|
| | | {
|
| | | PageUtils.clearPage();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 响应请求分页数据
|
| | | */
|
| | | @SuppressWarnings({ "rawtypes", "unchecked" })
|