处理商品列表页数据重复

This commit is contained in:
taozi
2021-01-28 21:55:53 +08:00
committed by xuwenbo
parent ef68ec442c
commit 0ee6c65298

View File

@ -280,6 +280,9 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
Page<YxStoreProduct> pageModel = new Page<>(productQueryParam.getPage(), Page<YxStoreProduct> pageModel = new Page<>(productQueryParam.getPage(),
productQueryParam.getLimit()); productQueryParam.getLimit());
//分页处理
wrapper.last("limit "+(productQueryParam.getPage()-1)*productQueryParam.getLimit()+","+productQueryParam.getLimit());
IPage<YxStoreProduct> pageList = storeProductMapper.selectPage(pageModel, wrapper); IPage<YxStoreProduct> pageList = storeProductMapper.selectPage(pageModel, wrapper);
//处理虚拟销量 //处理虚拟销量