|
|
@@ -53,6 +53,8 @@
|
|
|
<result column="match_sort" jdbcType="VARCHAR" property="matchSort" />
|
|
|
<result column="scene_sum_rov" jdbcType="DOUBLE" property="sceneSumRov" />
|
|
|
<result column="match_exposure_pv" jdbcType="BIGINT" property="matchExposurePv" />
|
|
|
+ <result column="match_head_single_return_rate" jdbcType="DOUBLE" property="matchHeadSingleReturnRate" />
|
|
|
+ <result column="match_head_distribution_single_return_rate" jdbcType="DOUBLE" property="matchHeadDistributionSingleReturnRate" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -132,7 +134,7 @@
|
|
|
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, channel_level3, element_dimension, channel_median, match_method, match_video_filter,
|
|
|
- match_sort, scene_sum_rov, match_exposure_pv
|
|
|
+ match_sort, scene_sum_rov, match_exposure_pv, match_head_single_return_rate, match_head_distribution_single_return_rate
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -200,7 +202,8 @@
|
|
|
demand_content_topic, uv_ratio, experiment_id,
|
|
|
channel_level3, element_dimension, channel_median,
|
|
|
match_method, match_video_filter, match_sort,
|
|
|
- scene_sum_rov, match_exposure_pv)
|
|
|
+ scene_sum_rov, match_exposure_pv, match_head_single_return_rate,
|
|
|
+ match_head_distribution_single_return_rate)
|
|
|
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},
|
|
|
@@ -216,7 +219,8 @@
|
|
|
#{demandContentTopic,jdbcType=VARCHAR}, #{uvRatio,jdbcType=DOUBLE}, #{experimentId,jdbcType=VARCHAR},
|
|
|
#{channelLevel3,jdbcType=VARCHAR}, #{elementDimension,jdbcType=VARCHAR}, #{channelMedian,jdbcType=DOUBLE},
|
|
|
#{matchMethod,jdbcType=VARCHAR}, #{matchVideoFilter,jdbcType=VARCHAR}, #{matchSort,jdbcType=VARCHAR},
|
|
|
- #{sceneSumRov,jdbcType=DOUBLE}, #{matchExposurePv,jdbcType=BIGINT})
|
|
|
+ #{sceneSumRov,jdbcType=DOUBLE}, #{matchExposurePv,jdbcType=BIGINT}, #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResult" useGeneratedKeys="true">
|
|
|
<!--
|
|
|
@@ -363,6 +367,12 @@
|
|
|
<if test="matchExposurePv != null">
|
|
|
match_exposure_pv,
|
|
|
</if>
|
|
|
+ <if test="matchHeadSingleReturnRate != null">
|
|
|
+ match_head_single_return_rate,
|
|
|
+ </if>
|
|
|
+ <if test="matchHeadDistributionSingleReturnRate != null">
|
|
|
+ match_head_distribution_single_return_rate,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="configId != null">
|
|
|
@@ -503,6 +513,12 @@
|
|
|
<if test="matchExposurePv != null">
|
|
|
#{matchExposurePv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="matchHeadSingleReturnRate != null">
|
|
|
+ #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="matchHeadDistributionSingleReturnRate != null">
|
|
|
+ #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultType="java.lang.Long">
|
|
|
@@ -663,6 +679,12 @@
|
|
|
<if test="record.matchExposurePv != null">
|
|
|
match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.matchHeadSingleReturnRate != null">
|
|
|
+ match_head_single_return_rate = #{record.matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.matchHeadDistributionSingleReturnRate != null">
|
|
|
+ match_head_distribution_single_return_rate = #{record.matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -720,7 +742,9 @@
|
|
|
match_video_filter = #{record.matchVideoFilter,jdbcType=VARCHAR},
|
|
|
match_sort = #{record.matchSort,jdbcType=VARCHAR},
|
|
|
scene_sum_rov = #{record.sceneSumRov,jdbcType=DOUBLE},
|
|
|
- match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT}
|
|
|
+ match_exposure_pv = #{record.matchExposurePv,jdbcType=BIGINT},
|
|
|
+ match_head_single_return_rate = #{record.matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ match_head_distribution_single_return_rate = #{record.matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -870,6 +894,12 @@
|
|
|
<if test="matchExposurePv != null">
|
|
|
match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="matchHeadSingleReturnRate != null">
|
|
|
+ match_head_single_return_rate = #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="matchHeadDistributionSingleReturnRate != null">
|
|
|
+ match_head_distribution_single_return_rate = #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -924,7 +954,9 @@
|
|
|
match_video_filter = #{matchVideoFilter,jdbcType=VARCHAR},
|
|
|
match_sort = #{matchSort,jdbcType=VARCHAR},
|
|
|
scene_sum_rov = #{sceneSumRov,jdbcType=DOUBLE},
|
|
|
- match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT}
|
|
|
+ match_exposure_pv = #{matchExposurePv,jdbcType=BIGINT},
|
|
|
+ match_head_single_return_rate = #{matchHeadSingleReturnRate,jdbcType=DOUBLE},
|
|
|
+ match_head_distribution_single_return_rate = #{matchHeadDistributionSingleReturnRate,jdbcType=DOUBLE}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|