| | |
| | | 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());
|
| | | Boolean reasonable = pageDomain.getReasonable();
|
| | | PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable);
|
| | | }
|
| | | PageUtils.startPage();
|
| | | }
|
| | |
|
| | | /**
|