Просмотр исходного кода

Merge branch 'cooperation_video_candidate_pool_improved_lld_0509' of Server/growth-manager into master

liulidong 12 часов назад
Родитель
Сommit
98c72d140f

+ 3 - 0
api-module/src/main/java/com/tzld/piaoquan/api/model/vo/contentplatform/VideoContentItemVO.java

@@ -81,6 +81,9 @@ public class VideoContentItemVO {
     @ApiModelProperty(value = "标准元素")
     @ApiModelProperty(value = "标准元素")
     private String standardElement;
     private String standardElement;
 
 
+    @ApiModelProperty(value = "品类")
+    private String category = "";
+
     @ApiModelProperty(value = "分类名称")
     @ApiModelProperty(value = "分类名称")
     private String categoryName;
     private String categoryName;
 
 

+ 6 - 0
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformPlanServiceImpl.java

@@ -1498,6 +1498,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
             if (Objects.isNull(item.getRecommendScore())) {
             if (Objects.isNull(item.getRecommendScore())) {
                 item.setRecommendScore(recommendTypeVideoScoreMap.get(video.getVideoId()));
                 item.setRecommendScore(recommendTypeVideoScoreMap.get(video.getVideoId()));
             }
             }
+            item.setCategory(defaultString(video.getCategory()));
             item.setExperimentId("hot");
             item.setExperimentId("hot");
             result.add(item);
             result.add(item);
         }
         }
@@ -2100,6 +2101,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
             item.setDemandContentTopic(video.getDemandContentTopic());
             item.setDemandContentTopic(video.getDemandContentTopic());
             item.setPointType(video.getPointType());
             item.setPointType(video.getPointType());
             item.setStandardElement(video.getStandardElement());
             item.setStandardElement(video.getStandardElement());
+            item.setCategory(defaultString(video.getCategory()));
             item.setCategoryName(video.getCategoryName());
             item.setCategoryName(video.getCategoryName());
             item.setExperimentId(video.getExperimentId());
             item.setExperimentId(video.getExperimentId());
             item.setSim(video.getSim());
             item.setSim(video.getSim());
@@ -2117,6 +2119,10 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
         return result;
         return result;
     }
     }
 
 
+    private static String defaultString(String value) {
+        return StringUtils.hasText(value) ? value : "";
+    }
+
     @Override
     @Override
     public Page<XcxPlanItemVO> xcxPlanList(XcxPlanListParam param) {
     public Page<XcxPlanItemVO> xcxPlanList(XcxPlanListParam param) {
         ContentPlatformAccount loginAccount = LoginUserContext.getUser();
         ContentPlatformAccount loginAccount = LoginUserContext.getUser();