mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
商品:修正浏览记录
This commit is contained in:
parent
9203f485e9
commit
df609df2cf
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user