拼团产品列表价格显示优化
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user