|
@@ -71,6 +71,7 @@ public class ArticleVideoAuditService {
|
|
|
List<String> contentIds = list.stream().map(ArticleVideoAuditListVO::getContentId).collect(Collectors.toList());
|
|
|
List<LongArticleCrawlerVideo> videoList = crawlerVideoRepository.getByContentIdIn(contentIds);
|
|
|
Map<String, List<LongArticleCrawlerVideo>> videoMap = videoList.stream()
|
|
|
+ .filter(o -> o.getDownloadStatus() == 2)
|
|
|
.collect(Collectors.groupingBy(LongArticleCrawlerVideo::getContentId));
|
|
|
for (ArticleVideoAuditListVO item : list) {
|
|
|
List<LongArticleCrawlerVideo> videos = videoMap.get(item.getContentId());
|