Commit df609df2cf88de04c3ede0dad55f9755c8d48cd0

Authored by owen
1 parent 9203f485

商品:修正浏览记录

yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/history/AppProductBrowseHistoryController.java
@@ -81,8 +81,9 @@ public class AppProductBrowseHistoryController { @@ -81,8 +81,9 @@ public class AppProductBrowseHistoryController {
81 // 转换 VO 结果 81 // 转换 VO 结果
82 PageResult<AppProductBrowseHistoryRespVO> result = BeanUtils.toBean(pageResult, AppProductBrowseHistoryRespVO.class, 82 PageResult<AppProductBrowseHistoryRespVO> result = BeanUtils.toBean(pageResult, AppProductBrowseHistoryRespVO.class,
83 vo -> Optional.ofNullable(spuMap.get(vo.getSpuId())).ifPresent(spu -> { 83 vo -> Optional.ofNullable(spuMap.get(vo.getSpuId())).ifPresent(spu -> {
84 - vo.setSpuName(spu.getName());  
85 - vo.setPicUrl(spu.getPicUrl()); 84 + vo.setSpuName(spu.getName())
  85 + .setPicUrl(spu.getPicUrl())
  86 + .setPrice(spu.getPrice());
86 })); 87 }));
87 return success(result); 88 return success(result);
88 } 89 }