Commit df609df2cf88de04c3ede0dad55f9755c8d48cd0
1 parent
9203f485
商品:修正浏览记录
Showing
1 changed file
with
3 additions
and
2 deletions
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 | 81 | // 转换 VO 结果 |
| 82 | 82 | PageResult<AppProductBrowseHistoryRespVO> result = BeanUtils.toBean(pageResult, AppProductBrowseHistoryRespVO.class, |
| 83 | 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 | 88 | return success(result); |
| 88 | 89 | } | ... | ... |