去掉多余代码
This commit is contained in:
@ -280,16 +280,8 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
||||
Page<YxStoreProduct> pageModel = new Page<>(productQueryParam.getPage(),
|
||||
productQueryParam.getLimit());
|
||||
|
||||
//分页处理
|
||||
//wrapper.last("limit "+(productQueryParam.getPage()-1)*productQueryParam.getLimit()+","+productQueryParam.getLimit());
|
||||
|
||||
IPage<YxStoreProduct> pageList = storeProductMapper.selectPage(pageModel, wrapper);
|
||||
|
||||
//处理虚拟销量
|
||||
// for (YxStoreProduct vo: pageList.getRecords()) {
|
||||
// vo.setSales(vo.getSales()+vo.getFicti());
|
||||
// }
|
||||
|
||||
List<YxStoreProductQueryVo> list = generator.convert(pageList.getRecords(), YxStoreProductQueryVo.class);
|
||||
|
||||
return list;
|
||||
@ -445,12 +437,6 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
||||
|
||||
IPage<YxStoreProduct> pageList = storeProductMapper.selectPage(pageModel, wrapper);
|
||||
|
||||
//处理虚拟销量(sql已处理,去掉代码处理)
|
||||
// for (YxStoreProduct vo: pageList.getRecords()) {
|
||||
// vo.setSales(vo.getSales()+vo.getFicti());
|
||||
// }
|
||||
|
||||
|
||||
return generator.convert(pageList.getRecords(), YxStoreProductQueryVo.class);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user