فهرست منبع

Merge branch 'dev-xym-add-match-video' of Server/long-article-recommend into master

xueyiming 1 ماه پیش
والد
کامیت
0368589894

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/video/impl/MatchVideoServiceImpl.java

@@ -93,7 +93,7 @@ public class MatchVideoServiceImpl implements MatchVideoService {
         List<LongArticlesMatchVideo> existLongArticlesMatchVideo =
                 longArticlesMatchVideoRepository.getByContentIdAndGhIdAndPublishFlag(searchVideoParam.getArticleId(),
                         searchVideoParam.getGhId(), publishFlag);
-        if (existLongArticlesMatchVideo == null) {
+        if (CollectionUtils.isEmpty(existLongArticlesMatchVideo)) {
             traceId = String.format("search-%s-%s", UUID.randomUUID(), System.currentTimeMillis() / 1000);
             LongArticlesMatchVideo longArticlesMatchVideo = new LongArticlesMatchVideo();
             longArticlesMatchVideo.setTraceId(traceId);