|
|
@@ -47,6 +47,7 @@
|
|
|
<result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
|
|
|
<result column="channel_level3" jdbcType="VARCHAR" property="channelLevel3" />
|
|
|
<result column="element_dimension" jdbcType="VARCHAR" property="elementDimension" />
|
|
|
+ <result column="channel_median" jdbcType="DOUBLE" property="channelMedian" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -125,7 +126,7 @@
|
|
|
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, channel_level3, element_dimension
|
|
|
+ experiment_id, channel_level3, element_dimension, channel_median
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -191,7 +192,8 @@
|
|
|
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_level3, element_dimension, channel_median
|
|
|
+ )
|
|
|
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},
|
|
|
@@ -205,7 +207,8 @@
|
|
|
#{driveDimensionTime,jdbcType=VARCHAR}, #{demandFilterSortStrategy,jdbcType=VARCHAR},
|
|
|
#{demandType,jdbcType=VARCHAR}, #{demandContentId,jdbcType=VARCHAR}, #{demandContentTitle,jdbcType=VARCHAR},
|
|
|
#{demandContentTopic,jdbcType=VARCHAR}, #{uvRatio,jdbcType=DOUBLE}, #{experimentId,jdbcType=VARCHAR},
|
|
|
- #{channelLevel3,jdbcType=VARCHAR}, #{elementDimension,jdbcType=VARCHAR})
|
|
|
+ #{channelLevel3,jdbcType=VARCHAR}, #{elementDimension,jdbcType=VARCHAR}, #{channelMedian,jdbcType=DOUBLE}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResult" useGeneratedKeys="true">
|
|
|
<!--
|
|
|
@@ -334,6 +337,9 @@
|
|
|
<if test="elementDimension != null">
|
|
|
element_dimension,
|
|
|
</if>
|
|
|
+ <if test="channelMedian != null">
|
|
|
+ channel_median,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="configId != null">
|
|
|
@@ -456,6 +462,9 @@
|
|
|
<if test="elementDimension != null">
|
|
|
#{elementDimension,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="channelMedian != null">
|
|
|
+ #{channelMedian,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchResultExample" resultType="java.lang.Long">
|
|
|
@@ -598,6 +607,9 @@
|
|
|
<if test="record.elementDimension != null">
|
|
|
element_dimension = #{record.elementDimension,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.channelMedian != null">
|
|
|
+ channel_median = #{record.channelMedian,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -649,7 +661,8 @@
|
|
|
uv_ratio = #{record.uvRatio,jdbcType=DOUBLE},
|
|
|
experiment_id = #{record.experimentId,jdbcType=VARCHAR},
|
|
|
channel_level3 = #{record.channelLevel3,jdbcType=VARCHAR},
|
|
|
- element_dimension = #{record.elementDimension,jdbcType=VARCHAR}
|
|
|
+ element_dimension = #{record.elementDimension,jdbcType=VARCHAR},
|
|
|
+ channel_median = #{record.channelMedian,jdbcType=DOUBLE}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -781,6 +794,9 @@
|
|
|
<if test="elementDimension != null">
|
|
|
element_dimension = #{elementDimension,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="channelMedian != null">
|
|
|
+ channel_median = #{channelMedian,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -829,7 +845,8 @@
|
|
|
uv_ratio = #{uvRatio,jdbcType=DOUBLE},
|
|
|
experiment_id = #{experimentId,jdbcType=VARCHAR},
|
|
|
channel_level3 = #{channelLevel3,jdbcType=VARCHAR},
|
|
|
- element_dimension = #{elementDimension,jdbcType=VARCHAR}
|
|
|
+ element_dimension = #{elementDimension,jdbcType=VARCHAR},
|
|
|
+ channel_median = #{channelMedian,jdbcType=DOUBLE}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|