wangyunpeng 11 часов назад
Родитель
Сommit
412142e8dc

+ 2 - 0
api-module/src/main/java/com/tzld/piaoquan/api/job/contentplatform/ContentPlatformDemandVideoJob.java

@@ -189,6 +189,7 @@ public class ContentPlatformDemandVideoJob {
                 String matchMethod = demandItem.getString("matchMethod");
                 String matchVideoFilter = demandItem.getString("matchVideoFilter");
                 String matchSort = demandItem.getString("matchSort");
+                Double sceneSumRov = demandItem.getDouble("sceneSumRov");
 
                 JSONArray matchedVideos = demandItem.getJSONArray("matchedVideos");
                 if (matchedVideos == null || matchedVideos.isEmpty()) {
@@ -229,6 +230,7 @@ public class ContentPlatformDemandVideoJob {
                     demandVideo.setMatchMethod(matchMethod != null ? matchMethod : "");
                     demandVideo.setMatchVideoFilter(matchVideoFilter != null ? matchVideoFilter : "");
                     demandVideo.setMatchSort(matchSort != null ? matchSort : "");
+                    demandVideo.setSceneSumRov(sceneSumRov);
                     demandVideo.setVideoId(videoItem.getLong("videoId"));
                     demandVideo.setConfigCode(videoItem.getString("configCode") != null ? videoItem.getString("configCode") : "");
                     demandVideo.setScore(videoItem.getDouble("score"));

+ 11 - 0
api-module/src/main/java/com/tzld/piaoquan/api/model/po/contentplatform/ContentPlatformDemandVideo.java

@@ -87,6 +87,8 @@ public class ContentPlatformDemandVideo {
 
     private String experimentId;
 
+    private Double sceneSumRov;
+
     private Integer status;
 
     private Long createTimestamp;
@@ -439,6 +441,14 @@ public class ContentPlatformDemandVideo {
         this.experimentId = experimentId;
     }
 
+    public Double getSceneSumRov() {
+        return sceneSumRov;
+    }
+
+    public void setSceneSumRov(Double sceneSumRov) {
+        this.sceneSumRov = sceneSumRov;
+    }
+
     public Integer getStatus() {
         return status;
     }
@@ -520,6 +530,7 @@ public class ContentPlatformDemandVideo {
         sb.append(", cover=").append(cover);
         sb.append(", video=").append(video);
         sb.append(", experimentId=").append(experimentId);
+        sb.append(", sceneSumRov=").append(sceneSumRov);
         sb.append(", status=").append(status);
         sb.append(", createTimestamp=").append(createTimestamp);
         sb.append(", updateTimestamp=").append(updateTimestamp);

+ 60 - 0
api-module/src/main/java/com/tzld/piaoquan/api/model/po/contentplatform/ContentPlatformDemandVideoExample.java

@@ -3025,6 +3025,66 @@ public class ContentPlatformDemandVideoExample {
             return (Criteria) this;
         }
 
+        public Criteria andSceneSumRovIsNull() {
+            addCriterion("scene_sum_rov is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovIsNotNull() {
+            addCriterion("scene_sum_rov is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovEqualTo(Double value) {
+            addCriterion("scene_sum_rov =", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovNotEqualTo(Double value) {
+            addCriterion("scene_sum_rov <>", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovGreaterThan(Double value) {
+            addCriterion("scene_sum_rov >", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovGreaterThanOrEqualTo(Double value) {
+            addCriterion("scene_sum_rov >=", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovLessThan(Double value) {
+            addCriterion("scene_sum_rov <", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovLessThanOrEqualTo(Double value) {
+            addCriterion("scene_sum_rov <=", value, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovIn(List<Double> values) {
+            addCriterion("scene_sum_rov in", values, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovNotIn(List<Double> values) {
+            addCriterion("scene_sum_rov not in", values, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovBetween(Double value1, Double value2) {
+            addCriterion("scene_sum_rov between", value1, value2, "sceneSumRov");
+            return (Criteria) this;
+        }
+
+        public Criteria andSceneSumRovNotBetween(Double value1, Double value2) {
+            addCriterion("scene_sum_rov not between", value1, value2, "sceneSumRov");
+            return (Criteria) this;
+        }
+
         public Criteria andStatusIsNull() {
             addCriterion("`status` is null");
             return (Criteria) this;

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

@@ -116,4 +116,7 @@ public class VideoContentItemVO {
 
     @ApiModelProperty(value = "需求侧总ROV")
     private Double totalRov;
+
+    @ApiModelProperty(value = "场景汇总ROV")
+    private Double sceneSumRov;
 }

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

@@ -1920,6 +1920,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
             item.setVisitUv(video.getVisitUv());
             item.setUvRatio(video.getUvRatio());
             item.setTotalRov(video.getTotalRov());
+            item.setSceneSumRov(video.getSceneSumRov());
             result.add(item);
         }
         return result;

+ 22 - 5
api-module/src/main/resources/mapper/contentplatform/ContentPlatformDemandVideoMapper.xml

@@ -45,6 +45,7 @@
     <result column="cover" jdbcType="VARCHAR" property="cover" />
     <result column="video" jdbcType="VARCHAR" property="video" />
     <result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
+    <result column="scene_sum_rov" jdbcType="DOUBLE" property="sceneSumRov" />
     <result column="status" jdbcType="INTEGER" property="status" />
     <result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
     <result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
@@ -115,7 +116,7 @@
     demand_content_topic, point_type, standard_element, element_dimension, category_name, 
     crowd_count, video_count, visit_uv, uv_ratio, total_rov, match_experiment_id, match_method, 
     match_video_filter, match_sort, video_id, config_code, score, sim, rov, match_text, 
-    title, cover, video, experiment_id, `status`, create_timestamp, update_timestamp, 
+    title, cover, video, experiment_id, scene_sum_rov, `status`, create_timestamp, update_timestamp, 
     category
   </sql>
   <select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultMap="BaseResultMap">
@@ -166,8 +167,9 @@
       match_sort, video_id, config_code, 
       score, sim, rov, match_text, 
       title, cover, video, 
-      experiment_id, `status`, create_timestamp, 
-      update_timestamp, category)
+      experiment_id, scene_sum_rov, `status`, 
+      create_timestamp, update_timestamp, category
+      )
     values (#{id,jdbcType=BIGINT}, #{dt,jdbcType=VARCHAR}, #{onlineAction,jdbcType=VARCHAR}, 
       #{channelName,jdbcType=VARCHAR}, #{crowdSegment,jdbcType=VARCHAR}, #{channelLevel3,jdbcType=VARCHAR}, 
       #{demandId,jdbcType=VARCHAR}, #{crowdPackage,jdbcType=VARCHAR}, #{conversionTarget,jdbcType=VARCHAR}, 
@@ -182,8 +184,9 @@
       #{matchSort,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT}, #{configCode,jdbcType=VARCHAR}, 
       #{score,jdbcType=DOUBLE}, #{sim,jdbcType=DOUBLE}, #{rov,jdbcType=DOUBLE}, #{matchText,jdbcType=VARCHAR}, 
       #{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR}, 
-      #{experimentId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTimestamp,jdbcType=BIGINT}, 
-      #{updateTimestamp,jdbcType=BIGINT}, #{category,jdbcType=VARCHAR})
+      #{experimentId,jdbcType=VARCHAR}, #{sceneSumRov,jdbcType=DOUBLE}, #{status,jdbcType=INTEGER}, 
+      #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT}, #{category,jdbcType=VARCHAR}
+      )
   </insert>
   <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
     insert into content_platform_demand_video
@@ -317,6 +320,9 @@
       <if test="experimentId != null">
         experiment_id,
       </if>
+      <if test="sceneSumRov != null">
+        scene_sum_rov,
+      </if>
       <if test="status != null">
         `status`,
       </if>
@@ -460,6 +466,9 @@
       <if test="experimentId != null">
         #{experimentId,jdbcType=VARCHAR},
       </if>
+      <if test="sceneSumRov != null">
+        #{sceneSumRov,jdbcType=DOUBLE},
+      </if>
       <if test="status != null">
         #{status,jdbcType=INTEGER},
       </if>
@@ -612,6 +621,9 @@
       <if test="record.experimentId != null">
         experiment_id = #{record.experimentId,jdbcType=VARCHAR},
       </if>
+      <if test="record.sceneSumRov != null">
+        scene_sum_rov = #{record.sceneSumRov,jdbcType=DOUBLE},
+      </if>
       <if test="record.status != null">
         `status` = #{record.status,jdbcType=INTEGER},
       </if>
@@ -674,6 +686,7 @@
       cover = #{record.cover,jdbcType=VARCHAR},
       video = #{record.video,jdbcType=VARCHAR},
       experiment_id = #{record.experimentId,jdbcType=VARCHAR},
+      scene_sum_rov = #{record.sceneSumRov,jdbcType=DOUBLE},
       `status` = #{record.status,jdbcType=INTEGER},
       create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
       update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
@@ -811,6 +824,9 @@
       <if test="experimentId != null">
         experiment_id = #{experimentId,jdbcType=VARCHAR},
       </if>
+      <if test="sceneSumRov != null">
+        scene_sum_rov = #{sceneSumRov,jdbcType=DOUBLE},
+      </if>
       <if test="status != null">
         `status` = #{status,jdbcType=INTEGER},
       </if>
@@ -870,6 +886,7 @@
       cover = #{cover,jdbcType=VARCHAR},
       video = #{video,jdbcType=VARCHAR},
       experiment_id = #{experimentId,jdbcType=VARCHAR},
+      scene_sum_rov = #{sceneSumRov,jdbcType=DOUBLE},
       `status` = #{status,jdbcType=INTEGER},
       create_timestamp = #{createTimestamp,jdbcType=BIGINT},
       update_timestamp = #{updateTimestamp,jdbcType=BIGINT},

+ 4 - 4
api-module/src/main/resources/mapper/contentplatform/ext/ContentPlatformDemandVideoMapperExt.xml

@@ -11,7 +11,7 @@
          crowd_count, video_count, visit_uv, uv_ratio, total_rov, online_action, match_experiment_id,
          match_method, match_video_filter, match_sort,
          video_id, config_code, score, sim, rov,
-         match_text, title, cover, video, experiment_id, channel_level3, status, create_timestamp, update_timestamp)
+         match_text, title, cover, video, experiment_id, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp)
         VALUES
         <foreach collection="list" item="item" separator=",">
             (#{item.dt}, #{item.channelName}, #{item.crowdSegment}, #{item.dimension}, #{item.pointType}, #{item.standardElement}, #{item.elementDimension},
@@ -21,7 +21,7 @@
              #{item.crowdCount}, #{item.videoCount}, #{item.visitUv}, #{item.uvRatio}, #{item.totalRov}, #{item.onlineAction}, #{item.matchExperimentId},
              #{item.matchMethod}, #{item.matchVideoFilter}, #{item.matchSort},
              #{item.videoId}, #{item.configCode}, #{item.score}, #{item.sim}, #{item.rov},
-             #{item.matchText}, #{item.title}, #{item.cover}, #{item.video}, #{item.experimentId}, #{item.channelLevel3}, #{item.status}, #{item.createTimestamp}, #{item.updateTimestamp})
+             #{item.matchText}, #{item.title}, #{item.cover}, #{item.video}, #{item.experimentId}, #{item.sceneSumRov}, #{item.channelLevel3}, #{item.status}, #{item.createTimestamp}, #{item.updateTimestamp})
         </foreach>
     </insert>
 
@@ -41,7 +41,7 @@
                crowd_count, video_count, visit_uv, uv_ratio, total_rov, online_action, match_experiment_id,
                match_method, match_video_filter, match_sort,
                video_id, config_code, score, sim, rov,
-               match_text, title, cover, video, experiment_id, channel_level3, status, create_timestamp, update_timestamp
+               match_text, title, cover, video, experiment_id, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp
         FROM content_platform_demand_video
         WHERE dt = #{dt} AND status = 1
         <if test="channelName != null and channelName != ''">
@@ -89,7 +89,7 @@
                crowd_count, video_count, visit_uv, uv_ratio, total_rov, online_action, match_experiment_id,
                match_method, match_video_filter, match_sort,
                video_id, config_code, score, sim, rov,
-               match_text, title, cover, video, experiment_id, status, create_timestamp, update_timestamp
+               match_text, title, cover, video, experiment_id, scene_sum_rov, status, create_timestamp, update_timestamp
         FROM content_platform_demand_video
         WHERE dt = #{dt} AND status = 1
         <if test="channelName == null || channelName != '公众号合作-Daily-自选'">