标签:bye pre help oschina 拷贝 git amp example style
* 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中
标签:bye pre help oschina 拷贝 git amp example style
原文地址:https://www.cnblogs.com/package-java/p/12202622.html