|
@@ -145,7 +145,7 @@ public class StoreOfficialAlbumServiceImpl extends ServiceImpl<StoreOfficialAlbu
|
|
|
log.warn("获取类型无效:{}", type);
|
|
log.warn("获取类型无效:{}", type);
|
|
|
throw new IllegalArgumentException("类型不能为空且必须大于0");
|
|
throw new IllegalArgumentException("类型不能为空且必须大于0");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ //视频
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
|
// 查询视频
|
|
// 查询视频
|
|
|
LambdaQueryWrapper<StoreVideo> albumQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<StoreVideo> albumQueryWrapper = new LambdaQueryWrapper<>();
|
|
@@ -156,6 +156,7 @@ public class StoreOfficialAlbumServiceImpl extends ServiceImpl<StoreOfficialAlbu
|
|
|
result.setVideoList(videoList);
|
|
result.setVideoList(videoList);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
+ //相册
|
|
|
if (type == 2) {
|
|
if (type == 2) {
|
|
|
// 先查询符合条件的官方相册ID列表
|
|
// 先查询符合条件的官方相册ID列表
|
|
|
LambdaQueryWrapper<StoreOfficialAlbum> albumQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<StoreOfficialAlbum> albumQueryWrapper = new LambdaQueryWrapper<>();
|
|
@@ -204,6 +205,7 @@ public class StoreOfficialAlbumServiceImpl extends ServiceImpl<StoreOfficialAlbu
|
|
|
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
+ //封面
|
|
|
if (type == 3) {
|
|
if (type == 3) {
|
|
|
StoreInfo storeInfo = storeInfoMapper.getStoreInfo(storeId);
|
|
StoreInfo storeInfo = storeInfoMapper.getStoreInfo(storeId);
|
|
|
|
|
|
|
@@ -214,14 +216,14 @@ public class StoreOfficialAlbumServiceImpl extends ServiceImpl<StoreOfficialAlbu
|
|
|
result.setTotalCount(0);
|
|
result.setTotalCount(0);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
- // 单图模式
|
|
|
|
|
|
|
+ // 单图模式 封面
|
|
|
if (storeInfo.getImgMode() == 0) {
|
|
if (storeInfo.getImgMode() == 0) {
|
|
|
List<StoreImg> imgList = storeImgService.getByCover(storeId, 20);
|
|
List<StoreImg> imgList = storeImgService.getByCover(storeId, 20);
|
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
|
result.setImgList(imgList);
|
|
result.setImgList(imgList);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
- // 多图模式
|
|
|
|
|
|
|
+ // 多图模式 封面
|
|
|
if (storeInfo.getImgMode() == 1) {
|
|
if (storeInfo.getImgMode() == 1) {
|
|
|
List<StoreImg> imgList = storeImgService.getByCover(storeId, 21);
|
|
List<StoreImg> imgList = storeImgService.getByCover(storeId, 21);
|
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
@@ -229,6 +231,13 @@ public class StoreOfficialAlbumServiceImpl extends ServiceImpl<StoreOfficialAlbu
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ //环境
|
|
|
|
|
+ if (type == 4){
|
|
|
|
|
+ List<StoreImg> imgList = storeImgService.getByCover(storeId, 4);
|
|
|
|
|
+ StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
|
|
|
+ result.setImgList(imgList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 默认返回空结果
|
|
// 默认返回空结果
|
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
StoreOfficialAlbumImgVo result = new StoreOfficialAlbumImgVo();
|
|
|
result.setImgList(Collections.emptyList());
|
|
result.setImgList(Collections.emptyList());
|