|
@@ -387,10 +387,23 @@ public class ProductServiceImpl implements ProductService {
|
|
|
BaikeProductVo entryInfo = baikeDao.getEntryInfoById(id);
|
|
|
//概述图册
|
|
|
List<BaikeImageVo> imageListById = baikeDao.getImageListById(id);
|
|
|
- entryInfo.setImageList(imageListById);
|
|
|
+ if(null!=imageListById&&imageListById.size()>0){
|
|
|
+ for (BaikeImageVo baikeImageVo:imageListById) {
|
|
|
+ baikeImageVo.setType(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
//视频列表
|
|
|
List<BaikeVideoVo> videoList = baikeDao.getVideoListById(id);
|
|
|
- entryInfo.setVideoList(videoList);
|
|
|
+ if(null!=videoList&&videoList.size()>0){
|
|
|
+ for (BaikeVideoVo baikevideo:videoList) {
|
|
|
+ BaikeImageVo img=new BaikeImageVo();
|
|
|
+ img.setType(2);
|
|
|
+ img.setVideoUrl(baikevideo.getOssUrl());
|
|
|
+ imageListById.add(img);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ entryInfo.setImageList(imageListById);
|
|
|
+// entryInfo.setVideoList(videoList);
|
|
|
//信息栏
|
|
|
List<BaikeInfoVo> infoList = baikeDao.getInfoListById(id);
|
|
|
entryInfo.setInfoList(infoList);
|