|
|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|