Mybatis分页遇到的问题(分页total)
* Mybatis - 通用分页拦截器<br/>
* 项目地址 : http://git.oschina.net/free/Mybatis_PageHelper
一、分页total拷贝
PageInfo<TShopOrderEntity> selectByExample = new ArrayList();
PageInfo<ShopOrderReqVo> shopOrderReqVoList = new ArrayList<>();
//拷贝total
PageInfo<TShopOrderEntity> pageInfo1 = new PageInfo<>(selectByExample);
PageInfo<ShopOrderReqVo> pageInfo = new PageInfo<>(shopOrderReqVoList);
pageInfo.setTotal(pageInfo1.getTotal());
将selectByExample的total值拷贝到shopOrderReqVoList中