瀏覽代碼

Merge branch 'wyp/1212-videoPoolCover' of Server/long-article-recommend into master

wangyunpeng 7 月之前
父節點
當前提交
d07bc2292a

+ 2 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/model/vo/ArticleVideoPoolSourceVO.java

@@ -12,6 +12,7 @@ public class ArticleVideoPoolSourceVO {
     private Integer flowPoolLevel;
     private String sourceId;
     private String title;
+    private String coverUrl;
 
     public static List<ArticleVideoPoolSourceVO> convertFromPublishSingleVideoSource(List<PublishSingleVideoSource> list) {
         return list.stream().map(publishSingleVideoSource -> {
@@ -20,6 +21,7 @@ public class ArticleVideoPoolSourceVO {
             articleVideoPoolSourceVO.setFlowPoolLevel(publishSingleVideoSource.getFlowPoolLevel());
             articleVideoPoolSourceVO.setSourceId(publishSingleVideoSource.getContentTraceId());
             articleVideoPoolSourceVO.setTitle(publishSingleVideoSource.getArticleTitle());
+            articleVideoPoolSourceVO.setCoverUrl(publishSingleVideoSource.getCoverUrl());
             return articleVideoPoolSourceVO;
         }).collect(Collectors.toList());
     }

+ 1 - 1
long-article-recommend-service/src/main/resources/mapper/longArticle/LongArticleBaseMapper.xml

@@ -231,7 +231,7 @@
 
     <select id="getPublishSingleVideoSource"
             resultType="com.tzld.longarticle.recommend.server.model.entity.longArticle.PublishSingleVideoSource">
-        select content_trace_id, article_title, flow_pool_level
+        select content_trace_id, article_title, cover_url, flow_pool_level
         from publish_single_video_source
         where bad_status = 0 and audit_status = 1
         <if test="flowPoolLevel!= null ">