wangyunpeng 7 stundas atpakaļ
vecāks
revīzija
2d052ae61a

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

@@ -205,6 +205,7 @@ public class ContentPlatformDemandVideoJob {
                 String matchVideoFilter = demandItem.getString("matchVideoFilter");
                 String matchSort = demandItem.getString("matchSort");
                 Double sceneSumRov = demandItem.getDouble("sceneSumRov");
+                Long matchExposurePv = demandItem.getLong("matchExposurePv");
 
                 JSONArray matchedVideos = demandItem.getJSONArray("matchedVideos");
                 if (matchedVideos == null || matchedVideos.isEmpty()) {
@@ -240,6 +241,7 @@ public class ContentPlatformDemandVideoJob {
                     demandVideo.setVisitUv(visitUv);
                     demandVideo.setUvRatio(uvRatio);
                     demandVideo.setTotalRov(totalRov);
+                    demandVideo.setMatchExposurePv(matchExposurePv);
                     demandVideo.setOnlineAction(onlineAction != null ? onlineAction : "");
                     demandVideo.setChannelLevel3(channelLevel3 != null ? channelLevel3 : "");
                     demandVideo.setMatchMethod(matchMethod != null ? matchMethod : "");

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

@@ -97,6 +97,8 @@ public class ContentPlatformDemandVideo {
 
     private String category;
 
+    private Long matchExposurePv;
+
     public Long getId() {
         return id;
     }
@@ -481,6 +483,14 @@ public class ContentPlatformDemandVideo {
         this.category = category;
     }
 
+    public Long getMatchExposurePv() {
+        return matchExposurePv;
+    }
+
+    public void setMatchExposurePv(Long matchExposurePv) {
+        this.matchExposurePv = matchExposurePv;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -535,6 +545,7 @@ public class ContentPlatformDemandVideo {
         sb.append(", createTimestamp=").append(createTimestamp);
         sb.append(", updateTimestamp=").append(updateTimestamp);
         sb.append(", category=").append(category);
+        sb.append(", matchExposurePv=").append(matchExposurePv);
         sb.append("]");
         return sb.toString();
     }

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

@@ -3334,6 +3334,66 @@ public class ContentPlatformDemandVideoExample {
             addCriterion("category not between", value1, value2, "category");
             return (Criteria) this;
         }
+
+        public Criteria andMatchExposurePvIsNull() {
+            addCriterion("match_exposure_pv is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvIsNotNull() {
+            addCriterion("match_exposure_pv is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvEqualTo(Long value) {
+            addCriterion("match_exposure_pv =", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvNotEqualTo(Long value) {
+            addCriterion("match_exposure_pv <>", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvGreaterThan(Long value) {
+            addCriterion("match_exposure_pv >", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvGreaterThanOrEqualTo(Long value) {
+            addCriterion("match_exposure_pv >=", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvLessThan(Long value) {
+            addCriterion("match_exposure_pv <", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvLessThanOrEqualTo(Long value) {
+            addCriterion("match_exposure_pv <=", value, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvIn(List<Long> values) {
+            addCriterion("match_exposure_pv in", values, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvNotIn(List<Long> values) {
+            addCriterion("match_exposure_pv not in", values, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvBetween(Long value1, Long value2) {
+            addCriterion("match_exposure_pv between", value1, value2, "matchExposurePv");
+            return (Criteria) this;
+        }
+
+        public Criteria andMatchExposurePvNotBetween(Long value1, Long value2) {
+            addCriterion("match_exposure_pv not between", value1, value2, "matchExposurePv");
+            return (Criteria) this;
+        }
     }
 
     public static class Criteria extends GeneratedCriteria {

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

@@ -50,6 +50,7 @@
     <result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
     <result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
     <result column="category" jdbcType="VARCHAR" property="category" />
+    <result column="match_exposure_pv" jdbcType="BIGINT" property="matchExposurePv" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -117,7 +118,7 @@
     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, scene_sum_rov, `status`, create_timestamp, update_timestamp, 
-    category
+    category, match_exposure_pv
   </sql>
   <select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultMap="BaseResultMap">
     select
@@ -168,8 +169,8 @@
       score, sim, rov, match_text, 
       title, cover, video, 
       experiment_id, scene_sum_rov, `status`, 
-      create_timestamp, update_timestamp, category
-      )
+      create_timestamp, update_timestamp, category, 
+      match_exposure_pv)
     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}, 
@@ -185,8 +186,8 @@
       #{score,jdbcType=DOUBLE}, #{sim,jdbcType=DOUBLE}, #{rov,jdbcType=DOUBLE}, #{matchText,jdbcType=VARCHAR}, 
       #{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR}, 
       #{experimentId,jdbcType=VARCHAR}, #{sceneSumRov,jdbcType=DOUBLE}, #{status,jdbcType=INTEGER}, 
-      #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT}, #{category,jdbcType=VARCHAR}
-      )
+      #{createTimestamp,jdbcType=BIGINT}, #{updateTimestamp,jdbcType=BIGINT}, #{category,jdbcType=VARCHAR}, 
+      #{matchExposurePv,jdbcType=BIGINT})
   </insert>
   <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideo">
     insert into content_platform_demand_video
@@ -335,6 +336,9 @@
       <if test="category != null">
         category,
       </if>
+      <if test="matchExposurePv != null">
+        match_exposure_pv,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -481,6 +485,9 @@
       <if test="category != null">
         #{category,jdbcType=VARCHAR},
       </if>
+      <if test="matchExposurePv != null">
+        #{matchExposurePv,jdbcType=BIGINT},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformDemandVideoExample" resultType="java.lang.Long">
@@ -636,6 +643,9 @@
       <if test="record.category != null">
         category = #{record.category,jdbcType=VARCHAR},
       </if>
+      <if test="record.matchExposurePv != null">
+        match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT},
+      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -690,7 +700,8 @@
       `status` = #{record.status,jdbcType=INTEGER},
       create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
       update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
-      category = #{record.category,jdbcType=VARCHAR}
+      category = #{record.category,jdbcType=VARCHAR},
+      match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -839,6 +850,9 @@
       <if test="category != null">
         category = #{category,jdbcType=VARCHAR},
       </if>
+      <if test="matchExposurePv != null">
+        match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT},
+      </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
   </update>
@@ -890,7 +904,8 @@
       `status` = #{status,jdbcType=INTEGER},
       create_timestamp = #{createTimestamp,jdbcType=BIGINT},
       update_timestamp = #{updateTimestamp,jdbcType=BIGINT},
-      category = #{category,jdbcType=VARCHAR}
+      category = #{category,jdbcType=VARCHAR},
+      match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 5 - 5
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, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp)
+         match_text, title, cover, video, experiment_id, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp, match_exposure_pv)
         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.sceneSumRov}, #{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}, #{item.matchExposurePv})
         </foreach>
     </insert>
 
@@ -45,7 +45,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, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp
+               match_text, title, cover, video, experiment_id, scene_sum_rov, channel_level3, status, create_timestamp, update_timestamp, match_exposure_pv
         FROM content_platform_demand_video
         WHERE dt = #{dt} AND status = 1
         <if test="channelName != null and channelName != ''">
@@ -107,7 +107,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, scene_sum_rov, status, create_timestamp, update_timestamp
+               match_text, title, cover, video, experiment_id, scene_sum_rov, status, create_timestamp, update_timestamp, match_exposure_pv
         FROM content_platform_demand_video
         WHERE dt = #{dt} AND status = 1
         <if test="excludeCategories != null and excludeCategories.size() > 0">
@@ -172,7 +172,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, scene_sum_rov, status, create_timestamp, update_timestamp
+               match_text, title, cover, video, experiment_id, scene_sum_rov, status, create_timestamp, update_timestamp, match_exposure_pv
         FROM content_platform_demand_video
         WHERE dt = #{dt} AND status = 1
           AND channel_name = #{channelName}

+ 3 - 3
api-module/src/main/resources/mybatis-api-contentPlatform-generator-config.xml

@@ -77,9 +77,9 @@
 <!--        <table tableName="content_platform_illegal_msg" domainObjectName="ContentPlatformIllegalMsg" alias=""/>-->
 <!--        <table tableName="content_platform_pq_account_rel" domainObjectName="ContentPlatformPqAccountRel" alias=""/>-->
 <!--        <table tableName="content_platform_upload_video" domainObjectName="ContentPlatformUploadVideo" alias=""/>-->
-<!--        <table tableName="content_platform_demand_video" domainObjectName="ContentPlatformDemandVideo" alias=""/>-->
-        <table tableName="content_platform_xcx_plan" domainObjectName="ContentPlatformXcxPlan" alias=""/>
-        <table tableName="content_platform_xcx_plan_video" domainObjectName="ContentPlatformXcxPlanVideo" alias=""/>
+        <table tableName="content_platform_demand_video" domainObjectName="ContentPlatformDemandVideo" alias=""/>
+<!--        <table tableName="content_platform_xcx_plan" domainObjectName="ContentPlatformXcxPlan" alias=""/>-->
+<!--        <table tableName="content_platform_xcx_plan_video" domainObjectName="ContentPlatformXcxPlanVideo" alias=""/>-->
     </context>
 
 </generatorConfiguration>