提交 1e3f7c72 作者: 刘明祎

动态列表优化

上级 8b609020
流水线 #8840 已通过 于阶段
in 2 分 59 秒
......@@ -94,6 +94,7 @@ public class DynamicVO implements Serializable {
@ApiModelProperty(value = "商品id")
private Integer goodsId;
@ApiModelProperty(value = "关联商品")
private MallGoodsVO mallGoodsVO;
......
......@@ -584,16 +584,16 @@ public class DynamicServiceImpl implements DynamicService {
dynamicVO.setStatus(null);
}
}
// 帖子id 获取商品id
// TODO 根据商品id 查询商品信息
// ResultBody<MallGoodsVO> mallGoodsVOResultBody = pmsAppApi.mallGoodsDetails();
return PageResult.buildPage(pageNo, pageSize, count, dynamicVOList);
// 帖子id 获取商品id
List<DynamicVO> collect = dynamicVOList.stream().map(item -> {
Integer goodsId = item.getGoodsId();
MallGoodsVO result = pmsAppApi.mallGoodsDetails(goodsId).getResult();
item.setMallGoodsVO(result);
return item;
}).collect(Collectors.toList());
return PageResult.buildPage(pageNo, pageSize, count, collect);
}
@Override
public ResultBody recentNewsList(Integer userAccountId) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论