ITeye博客

springboot分页插件

caichenglong · 2019-01-10 17:24 · springboot · 编程语言 · Markdown

<dependency>
    <groupId>com.github.pagehelper</groupId>
    <artifactId>pagehelper-spring-boot-starter</artifactId>
    <version>1.2.3</version>
</dependency>

  

/**
 * 分页查询
 *
 * @param paramVo
* @return
*/
@Override
public List<OwnerOrderSjtListResponseVo> getOwnerOrderSjtListPage(OwnerOrderSjtVo paramVo) {
    //使用分页插件,核心代码就这一行
PageHelper.startPage(paramVo.getPageNo(), paramVo.getPageSize());
List<OwnerOrderSjtListResponseVo> sjtListResponseVoList = ownerOrderSjtDao.getOwnerOrderSjtList(paramVo);
    return sjtListResponseVoList;
}

 

原文:https://blog.csdn.net/aiyaya_/article/details/79178984

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。