|
@@ -16,6 +16,8 @@
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="online_action" jdbcType="VARCHAR" property="onlineAction" />
|
|
<result column="online_action" jdbcType="VARCHAR" property="onlineAction" />
|
|
|
<result column="demand_strategy" jdbcType="VARCHAR" property="demandStrategy" />
|
|
<result column="demand_strategy" jdbcType="VARCHAR" property="demandStrategy" />
|
|
|
|
|
+ <result column="filter_dimensions" jdbcType="VARCHAR" property="filterDimensions" />
|
|
|
|
|
+ <result column="filter_time_dimensions" jdbcType="VARCHAR" property="filterTimeDimensions" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
<!--
|
|
@@ -89,7 +91,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
-->
|
|
|
id, channel_name, min_uv, min_rov, top_n, "status", create_time, update_time, online_action,
|
|
id, channel_name, min_uv, min_rov, top_n, "status", create_time, update_time, online_action,
|
|
|
- demand_strategy
|
|
|
|
|
|
|
+ demand_strategy, filter_dimensions, filter_time_dimensions
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfigExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfigExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
@@ -144,12 +146,12 @@
|
|
|
-->
|
|
-->
|
|
|
insert into channel_demand_match_config (channel_name, min_uv, min_rov,
|
|
insert into channel_demand_match_config (channel_name, min_uv, min_rov,
|
|
|
top_n, "status", create_time,
|
|
top_n, "status", create_time,
|
|
|
- update_time, online_action, demand_strategy
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ update_time, online_action, demand_strategy,
|
|
|
|
|
+ filter_dimensions, filter_time_dimensions)
|
|
|
values (#{channelName,jdbcType=VARCHAR}, #{minUv,jdbcType=INTEGER}, #{minRov,jdbcType=DOUBLE},
|
|
values (#{channelName,jdbcType=VARCHAR}, #{minUv,jdbcType=INTEGER}, #{minRov,jdbcType=DOUBLE},
|
|
|
#{topN,jdbcType=INTEGER}, #{status,jdbcType=SMALLINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{topN,jdbcType=INTEGER}, #{status,jdbcType=SMALLINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{onlineAction,jdbcType=VARCHAR}, #{demandStrategy,jdbcType=VARCHAR}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{onlineAction,jdbcType=VARCHAR}, #{demandStrategy,jdbcType=VARCHAR},
|
|
|
|
|
+ #{filterDimensions,jdbcType=VARCHAR}, #{filterTimeDimensions,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfig" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfig" useGeneratedKeys="true">
|
|
|
<!--
|
|
<!--
|
|
@@ -185,6 +187,12 @@
|
|
|
<if test="demandStrategy != null">
|
|
<if test="demandStrategy != null">
|
|
|
demand_strategy,
|
|
demand_strategy,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="filterDimensions != null">
|
|
|
|
|
+ filter_dimensions,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="filterTimeDimensions != null">
|
|
|
|
|
+ filter_time_dimensions,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="channelName != null">
|
|
<if test="channelName != null">
|
|
@@ -214,6 +222,12 @@
|
|
|
<if test="demandStrategy != null">
|
|
<if test="demandStrategy != null">
|
|
|
#{demandStrategy,jdbcType=VARCHAR},
|
|
#{demandStrategy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="filterDimensions != null">
|
|
|
|
|
+ #{filterDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="filterTimeDimensions != null">
|
|
|
|
|
+ #{filterTimeDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfigExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.ChannelDemandMatchConfigExample" resultType="java.lang.Long">
|
|
@@ -263,6 +277,12 @@
|
|
|
<if test="record.demandStrategy != null">
|
|
<if test="record.demandStrategy != null">
|
|
|
demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
|
|
demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.filterDimensions != null">
|
|
|
|
|
+ filter_dimensions = #{record.filterDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.filterTimeDimensions != null">
|
|
|
|
|
+ filter_time_dimensions = #{record.filterTimeDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -283,7 +303,9 @@
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
online_action = #{record.onlineAction,jdbcType=VARCHAR},
|
|
online_action = #{record.onlineAction,jdbcType=VARCHAR},
|
|
|
- demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ demand_strategy = #{record.demandStrategy,jdbcType=VARCHAR},
|
|
|
|
|
+ filter_dimensions = #{record.filterDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ filter_time_dimensions = #{record.filterTimeDimensions,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -322,6 +344,12 @@
|
|
|
<if test="demandStrategy != null">
|
|
<if test="demandStrategy != null">
|
|
|
demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
|
|
demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="filterDimensions != null">
|
|
|
|
|
+ filter_dimensions = #{filterDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="filterTimeDimensions != null">
|
|
|
|
|
+ filter_time_dimensions = #{filterTimeDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
@@ -339,7 +367,9 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
online_action = #{onlineAction,jdbcType=VARCHAR},
|
|
online_action = #{onlineAction,jdbcType=VARCHAR},
|
|
|
- demand_strategy = #{demandStrategy,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ demand_strategy = #{demandStrategy,jdbcType=VARCHAR},
|
|
|
|
|
+ filter_dimensions = #{filterDimensions,jdbcType=VARCHAR},
|
|
|
|
|
+ filter_time_dimensions = #{filterTimeDimensions,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
</mapper>
|
|
</mapper>
|