Commit 7fa70ca2 by songyinghui

feature: 素材落地页

parent 34d8b8a8
......@@ -6,6 +6,7 @@ import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.content.api.dto.material.ContentGoodsDTO;
import com.gic.content.api.dto.material.ContentMaterialLandingPageInfoDTO;
import com.gic.content.api.dto.material.ProductInfoDTO;
import com.gic.content.api.qdto.material.ContentMaterialLandingPageQDTO;
import com.gic.content.api.service.ContentMaterialShareApiService;
import com.gic.haoban.manage.api.dto.content.log.ClerkShareMaterialLogDTO;
......@@ -101,13 +102,16 @@ public class ClerkMaterialShareController {
Splitter.on(",").splitToList(serviceResponse.getResult().getContentMaterialInfo().getMaterialImageUrls()));
}
}
List<ContentGoodsDTO> goodsInfos = serviceResponse.getResult().getGoodsInfos();
List<ProductInfoDTO> goodsInfos = serviceResponse.getResult().getProductInfos();
if (CollectionUtils.isNotEmpty(goodsInfos)) {
List<SimpleGoodsInfoVO> goodsInfoVOS = goodsInfos.stream()
.map(item -> {
SimpleGoodsInfoVO temp = new SimpleGoodsInfoVO();
BeanUtils.copyProperties(item, temp);
temp.setGoodsImg(item.getGoodsImageUrl());
temp.setGoodsId(item.getProId());
temp.setGoodsName(item.getProName());
temp.setSalePrice(item.getMinPrice());
temp.setGoodsImg(item.getImageUrl());
return temp;
})
.collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment