|
|
@@ -103,6 +103,9 @@ public class SearchServiceImpl implements SearchService {
|
|
|
List<VideoSummary> videoSummaryList = pageList.getList();
|
|
|
Map<String, List<VideoSummary>> map = videoSummaryList.stream().collect(Collectors.groupingBy(VideoSummary::getVideoId));
|
|
|
List<String> videoIds = new ArrayList<>(map.keySet());
|
|
|
+ if (videoIds.isEmpty()) {
|
|
|
+ return PageList.empty();
|
|
|
+ }
|
|
|
|
|
|
List<VideoCard> list1 = videoPostMapper.findVideoCardByVideoIds(videoIds).stream()
|
|
|
.map(videoPostCard -> {
|