商品:修正浏览记录

This commit is contained in:
owen 2024-01-11 00:25:55 +08:00
parent 9203f485e9
commit df609df2cf

View File

@ -81,8 +81,9 @@ public class AppProductBrowseHistoryController {
// 转换 VO 结果 // 转换 VO 结果
PageResult<AppProductBrowseHistoryRespVO> result = BeanUtils.toBean(pageResult, AppProductBrowseHistoryRespVO.class, PageResult<AppProductBrowseHistoryRespVO> result = BeanUtils.toBean(pageResult, AppProductBrowseHistoryRespVO.class,
vo -> Optional.ofNullable(spuMap.get(vo.getSpuId())).ifPresent(spu -> { vo -> Optional.ofNullable(spuMap.get(vo.getSpuId())).ifPresent(spu -> {
vo.setSpuName(spu.getName()); vo.setSpuName(spu.getName())
vo.setPicUrl(spu.getPicUrl()); .setPicUrl(spu.getPicUrl())
.setPrice(spu.getPrice());
})); }));
return success(result); return success(result);
} }