|
|
@@ -18,9 +18,6 @@
|
|
|
<result column="crowd_count" jdbcType="INTEGER" property="crowdCount" />
|
|
|
<result column="video_count" jdbcType="INTEGER" property="videoCount" />
|
|
|
<result column="visit_uv" jdbcType="BIGINT" property="visitUv" />
|
|
|
- <result column="visit_pv" jdbcType="BIGINT" property="visitPv" />
|
|
|
- <result column="share_pv" jdbcType="BIGINT" property="sharePv" />
|
|
|
- <result column="backflow_uv" jdbcType="BIGINT" property="backflowUv" />
|
|
|
<result column="total_rov" jdbcType="DOUBLE" property="totalRov" />
|
|
|
<result column="match_video_id" jdbcType="BIGINT" property="matchVideoId" />
|
|
|
<result column="match_config_code" jdbcType="VARCHAR" property="matchConfigCode" />
|
|
|
@@ -47,6 +44,7 @@
|
|
|
<result column="demand_content_title" jdbcType="VARCHAR" property="demandContentTitle" />
|
|
|
<result column="demand_content_topic" jdbcType="VARCHAR" property="demandContentTopic" />
|
|
|
<result column="uv_ratio" jdbcType="DOUBLE" property="uvRatio" />
|
|
|
+ <result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -120,12 +118,12 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
id, config_id, dt, channel_name, crowd_segment, dimension, point_type, standard_element,
|
|
|
- category_name, crowd_count, video_count, visit_uv, visit_pv, share_pv, backflow_uv,
|
|
|
- total_rov, match_video_id, match_config_code, match_score, match_sim, match_rov,
|
|
|
- match_text, match_status, create_time, update_time, online_action, match_experiment_id,
|
|
|
- demand_id, crowd_package, conversion_target, partner, account, scene_value, demand_strategy,
|
|
|
- drive_dimension_time, demand_filter_sort_strategy, demand_type, demand_content_id,
|
|
|
- demand_content_title, demand_content_topic, uv_ratio
|
|
|
+ category_name, crowd_count, video_count, visit_uv, total_rov, match_video_id, match_config_code,
|
|
|
+ match_score, match_sim, match_rov, match_text, match_status, create_time, update_time,
|
|
|
+ online_action, match_experiment_id, demand_id, crowd_package, conversion_target,
|
|
|
+ partner, account, scene_value, demand_strategy, drive_dimension_time, demand_filter_sort_strategy,
|
|
|
+ demand_type, demand_content_id, demand_content_title, demand_content_topic, uv_ratio,
|
|
|
+ experiment_id
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -181,8 +179,7 @@
|
|
|
insert into channel_demand_match_result (config_id, dt, channel_name,
|
|
|
crowd_segment, dimension, point_type,
|
|
|
standard_element, category_name, crowd_count,
|
|
|
- video_count, visit_uv, visit_pv,
|
|
|
- share_pv, backflow_uv, total_rov,
|
|
|
+ video_count, visit_uv, total_rov,
|
|
|
match_video_id, match_config_code, match_score,
|
|
|
match_sim, match_rov, match_text,
|
|
|
match_status, create_time, update_time,
|
|
|
@@ -191,12 +188,12 @@
|
|
|
account, scene_value, demand_strategy,
|
|
|
drive_dimension_time, demand_filter_sort_strategy,
|
|
|
demand_type, demand_content_id, demand_content_title,
|
|
|
- demand_content_topic, uv_ratio)
|
|
|
+ demand_content_topic, uv_ratio, experiment_id
|
|
|
+ )
|
|
|
values (#{configId,jdbcType=BIGINT}, #{dt,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR},
|
|
|
#{crowdSegment,jdbcType=VARCHAR}, #{dimension,jdbcType=VARCHAR}, #{pointType,jdbcType=VARCHAR},
|
|
|
#{standardElement,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR}, #{crowdCount,jdbcType=INTEGER},
|
|
|
- #{videoCount,jdbcType=INTEGER}, #{visitUv,jdbcType=BIGINT}, #{visitPv,jdbcType=BIGINT},
|
|
|
- #{sharePv,jdbcType=BIGINT}, #{backflowUv,jdbcType=BIGINT}, #{totalRov,jdbcType=DOUBLE},
|
|
|
+ #{videoCount,jdbcType=INTEGER}, #{visitUv,jdbcType=BIGINT}, #{totalRov,jdbcType=DOUBLE},
|
|
|
#{matchVideoId,jdbcType=BIGINT}, #{matchConfigCode,jdbcType=VARCHAR}, #{matchScore,jdbcType=DOUBLE},
|
|
|
#{matchSim,jdbcType=DOUBLE}, #{matchRov,jdbcType=DOUBLE}, #{matchText,jdbcType=VARCHAR},
|
|
|
#{matchStatus,jdbcType=SMALLINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
@@ -205,7 +202,8 @@
|
|
|
#{account,jdbcType=VARCHAR}, #{sceneValue,jdbcType=VARCHAR}, #{demandStrategy,jdbcType=VARCHAR},
|
|
|
#{driveDimensionTime,jdbcType=VARCHAR}, #{demandFilterSortStrategy,jdbcType=VARCHAR},
|
|
|
#{demandType,jdbcType=VARCHAR}, #{demandContentId,jdbcType=VARCHAR}, #{demandContentTitle,jdbcType=VARCHAR},
|
|
|
- #{demandContentTopic,jdbcType=VARCHAR}, #{uvRatio,jdbcType=DOUBLE})
|
|
|
+ #{demandContentTopic,jdbcType=VARCHAR}, #{uvRatio,jdbcType=DOUBLE}, #{experimentId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResult" useGeneratedKeys="true">
|
|
|
<!--
|
|
|
@@ -247,15 +245,6 @@
|
|
|
<if test="visitUv != null">
|
|
|
visit_uv,
|
|
|
</if>
|
|
|
- <if test="visitPv != null">
|
|
|
- visit_pv,
|
|
|
- </if>
|
|
|
- <if test="sharePv != null">
|
|
|
- share_pv,
|
|
|
- </if>
|
|
|
- <if test="backflowUv != null">
|
|
|
- backflow_uv,
|
|
|
- </if>
|
|
|
<if test="totalRov != null">
|
|
|
total_rov,
|
|
|
</if>
|
|
|
@@ -334,6 +323,9 @@
|
|
|
<if test="uvRatio != null">
|
|
|
uv_ratio,
|
|
|
</if>
|
|
|
+ <if test="experimentId != null">
|
|
|
+ experiment_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="configId != null">
|
|
|
@@ -369,15 +361,6 @@
|
|
|
<if test="visitUv != null">
|
|
|
#{visitUv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="visitPv != null">
|
|
|
- #{visitPv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="sharePv != null">
|
|
|
- #{sharePv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="backflowUv != null">
|
|
|
- #{backflowUv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="totalRov != null">
|
|
|
#{totalRov,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
@@ -456,6 +439,9 @@
|
|
|
<if test="uvRatio != null">
|
|
|
#{uvRatio,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="experimentId != null">
|
|
|
+ #{experimentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultType="java.lang.Long">
|
|
|
@@ -511,15 +497,6 @@
|
|
|
<if test="record.visitUv != null">
|
|
|
visit_uv = #{record.visitUv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="record.visitPv != null">
|
|
|
- visit_pv = #{record.visitPv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="record.sharePv != null">
|
|
|
- share_pv = #{record.sharePv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="record.backflowUv != null">
|
|
|
- backflow_uv = #{record.backflowUv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="record.totalRov != null">
|
|
|
total_rov = #{record.totalRov,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
@@ -598,6 +575,9 @@
|
|
|
<if test="record.uvRatio != null">
|
|
|
uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="record.experimentId != null">
|
|
|
+ experiment_id = #{record.experimentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -621,9 +601,6 @@
|
|
|
crowd_count = #{record.crowdCount,jdbcType=INTEGER},
|
|
|
video_count = #{record.videoCount,jdbcType=INTEGER},
|
|
|
visit_uv = #{record.visitUv,jdbcType=BIGINT},
|
|
|
- visit_pv = #{record.visitPv,jdbcType=BIGINT},
|
|
|
- share_pv = #{record.sharePv,jdbcType=BIGINT},
|
|
|
- backflow_uv = #{record.backflowUv,jdbcType=BIGINT},
|
|
|
total_rov = #{record.totalRov,jdbcType=DOUBLE},
|
|
|
match_video_id = #{record.matchVideoId,jdbcType=BIGINT},
|
|
|
match_config_code = #{record.matchConfigCode,jdbcType=VARCHAR},
|
|
|
@@ -649,7 +626,8 @@
|
|
|
demand_content_id = #{record.demandContentId,jdbcType=VARCHAR},
|
|
|
demand_content_title = #{record.demandContentTitle,jdbcType=VARCHAR},
|
|
|
demand_content_topic = #{record.demandContentTopic,jdbcType=VARCHAR},
|
|
|
- uv_ratio = #{record.uvRatio,jdbcType=DOUBLE}
|
|
|
+ uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
|
|
|
+ experiment_id = #{record.experimentId,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -694,15 +672,6 @@
|
|
|
<if test="visitUv != null">
|
|
|
visit_uv = #{visitUv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="visitPv != null">
|
|
|
- visit_pv = #{visitPv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="sharePv != null">
|
|
|
- share_pv = #{sharePv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="backflowUv != null">
|
|
|
- backflow_uv = #{backflowUv,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
<if test="totalRov != null">
|
|
|
total_rov = #{totalRov,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
@@ -781,6 +750,9 @@
|
|
|
<if test="uvRatio != null">
|
|
|
uv_ratio = #{uvRatio,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="experimentId != null">
|
|
|
+ experiment_id = #{experimentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -801,9 +773,6 @@
|
|
|
crowd_count = #{crowdCount,jdbcType=INTEGER},
|
|
|
video_count = #{videoCount,jdbcType=INTEGER},
|
|
|
visit_uv = #{visitUv,jdbcType=BIGINT},
|
|
|
- visit_pv = #{visitPv,jdbcType=BIGINT},
|
|
|
- share_pv = #{sharePv,jdbcType=BIGINT},
|
|
|
- backflow_uv = #{backflowUv,jdbcType=BIGINT},
|
|
|
total_rov = #{totalRov,jdbcType=DOUBLE},
|
|
|
match_video_id = #{matchVideoId,jdbcType=BIGINT},
|
|
|
match_config_code = #{matchConfigCode,jdbcType=VARCHAR},
|
|
|
@@ -829,7 +798,8 @@
|
|
|
demand_content_id = #{demandContentId,jdbcType=VARCHAR},
|
|
|
demand_content_title = #{demandContentTitle,jdbcType=VARCHAR},
|
|
|
demand_content_topic = #{demandContentTopic,jdbcType=VARCHAR},
|
|
|
- uv_ratio = #{uvRatio,jdbcType=DOUBLE}
|
|
|
+ uv_ratio = #{uvRatio,jdbcType=DOUBLE},
|
|
|
+ experiment_id = #{experimentId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|