拼团产品列表价格显示优化

This commit is contained in:
hupeng
2020-10-05 11:41:58 +08:00
parent cc272cd411
commit 7d74bedd79

View File

@ -188,10 +188,7 @@ public class YxStoreCombinationServiceImpl extends BaseServiceImpl<YxStoreCombin
List<YxStoreCombinationQueryVo> collect = yxStoreCombinationIPage.getRecords().stream().map(i -> { List<YxStoreCombinationQueryVo> collect = yxStoreCombinationIPage.getRecords().stream().map(i -> {
YxStoreCombinationQueryVo yxStoreCombinationQueryVo = new YxStoreCombinationQueryVo(); YxStoreCombinationQueryVo yxStoreCombinationQueryVo = new YxStoreCombinationQueryVo();
YxStoreProduct product = storeProductService.getById(i.getProductId());
BeanUtils.copyProperties(i, yxStoreCombinationQueryVo); BeanUtils.copyProperties(i, yxStoreCombinationQueryVo);
yxStoreCombinationQueryVo.setSales(product.getSales());
yxStoreCombinationQueryVo.setProductPrice(product.getPrice());
return yxStoreCombinationQueryVo; return yxStoreCombinationQueryVo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
combinationQueryVo.setStoreCombinationQueryVos(collect); combinationQueryVo.setStoreCombinationQueryVos(collect);