@Override
public PageInfo<GoodsCustom> selectDItem(GoodsCustom goodsCustom) {
// TODO Auto-generated method stub
PageInfo<GoodsCustom> pageInfo = null;
int pageNum = 1; // 必须从1开始 rows = page-1
int pageSize = 0;
if(null != goodsCustom && goodsCustom.getPageNum()!= 0){
pageNum = goodsCustom.getPageNum();
}
if(null != goodsCustom && goodsCustom.getPageSize()!= 0){
pageSize = goodsCustom.getPageSize();
}
PageHelper.startPage(pageNum, pageSize, true);
Page<GoodsCustom> pages = goodsCustomMapper.selectDItemPageList(goodsCustom);
if (null != pages) {
pageInfo = new PageInfo<GoodsCustom>(pages);
}
return pageInfo;
}