|
@@ -114,6 +114,8 @@ public class ArticleAuditService {
|
|
|
Map<String, LongArticlesMatchVideo> longarticlesMatchVideoMap = longArticlesMatchVideoList.stream()
|
|
|
.collect(Collectors.toMap(LongArticlesMatchVideo::getTraceId, Function.identity()));
|
|
|
List<String> existsOssPath = longArticleBaseMapper.getExistsOssPath(VideoAuditTypeEnum.PQ.getType());
|
|
|
+ Long todayStart = DateUtils.getTodayStart();
|
|
|
+ List<Long> existsVideoId = longArticleBaseMapper.getExistsVideoId(VideoAuditTypeEnum.PQ.getType(), todayStart);
|
|
|
for (String traceId : traceIds) {
|
|
|
try {
|
|
|
LongArticlesMatchVideo longArticlesMatchVideo = longarticlesMatchVideoMap.get(traceId);
|
|
@@ -127,6 +129,9 @@ public class ArticleAuditService {
|
|
|
}
|
|
|
existsOssPath.add(ossPath);
|
|
|
}
|
|
|
+ if (existsVideoId.contains(response.getVideoID())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
LongArticleVideoAudit videoAudit = new LongArticleVideoAudit();
|
|
|
videoAudit.setVideoId(response.getVideoID());
|
|
|
videoAudit.setTraceId(traceId);
|
|
@@ -174,6 +179,8 @@ public class ArticleAuditService {
|
|
|
Map<String, LongArticlesMatchVideo> longarticlesMatchVideoMap = longArticlesMatchVideoList.stream()
|
|
|
.collect(Collectors.toMap(LongArticlesMatchVideo::getTraceId, Function.identity()));
|
|
|
List<String> existsOssPath = longArticleBaseMapper.getExistsOssPath(VideoAuditTypeEnum.COVER.getType());
|
|
|
+ Long todayStart = DateUtils.getTodayStart();
|
|
|
+ List<Long> existsVideoId = longArticleBaseMapper.getExistsVideoId(VideoAuditTypeEnum.COVER.getType(), todayStart);
|
|
|
for (String traceId : traceIds) {
|
|
|
try {
|
|
|
Long now = System.currentTimeMillis();
|
|
@@ -188,6 +195,9 @@ public class ArticleAuditService {
|
|
|
}
|
|
|
existsOssPath.add(ossPath);
|
|
|
}
|
|
|
+ if (existsVideoId.contains(response.getVideoID())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
LongArticleVideoAudit videoAudit = new LongArticleVideoAudit();
|
|
|
videoAudit.setVideoId(response.getVideoID());
|
|
|
videoAudit.setTraceId(traceId);
|