|
@@ -21,6 +21,7 @@
|
|
|
<result column="config_codes" jdbcType="VARCHAR" property="configCodes" />
|
|
<result column="config_codes" jdbcType="VARCHAR" property="configCodes" />
|
|
|
<result column="ranking_params" jdbcType="VARCHAR" property="rankingParams" />
|
|
<result column="ranking_params" jdbcType="VARCHAR" property="rankingParams" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="experiment_id" jdbcType="VARCHAR" property="experimentId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
<!--
|
|
@@ -95,7 +96,7 @@
|
|
|
-->
|
|
-->
|
|
|
id, dt, channel_name, channel_level3, account, match_video_id, video_title, matched_article_id,
|
|
id, dt, channel_name, channel_level3, account, match_video_id, video_title, matched_article_id,
|
|
|
matched_article_title, match_score, match_config_code, query_text, config_codes,
|
|
matched_article_title, match_score, match_config_code, query_text, config_codes,
|
|
|
- ranking_params, create_time
|
|
|
|
|
|
|
+ ranking_params, create_time, experiment_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResultExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResultExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
@@ -152,14 +153,14 @@
|
|
|
account, match_video_id, video_title,
|
|
account, match_video_id, video_title,
|
|
|
matched_article_id, matched_article_title,
|
|
matched_article_id, matched_article_title,
|
|
|
match_score, match_config_code, query_text,
|
|
match_score, match_config_code, query_text,
|
|
|
- config_codes, ranking_params, create_time
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ config_codes, ranking_params, create_time,
|
|
|
|
|
+ experiment_id)
|
|
|
values (#{dt,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, #{channelLevel3,jdbcType=VARCHAR},
|
|
values (#{dt,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, #{channelLevel3,jdbcType=VARCHAR},
|
|
|
#{account,jdbcType=VARCHAR}, #{matchVideoId,jdbcType=BIGINT}, #{videoTitle,jdbcType=VARCHAR},
|
|
#{account,jdbcType=VARCHAR}, #{matchVideoId,jdbcType=BIGINT}, #{videoTitle,jdbcType=VARCHAR},
|
|
|
#{matchedArticleId,jdbcType=VARCHAR}, #{matchedArticleTitle,jdbcType=VARCHAR},
|
|
#{matchedArticleId,jdbcType=VARCHAR}, #{matchedArticleTitle,jdbcType=VARCHAR},
|
|
|
#{matchScore,jdbcType=DOUBLE}, #{matchConfigCode,jdbcType=VARCHAR}, #{queryText,jdbcType=VARCHAR},
|
|
#{matchScore,jdbcType=DOUBLE}, #{matchConfigCode,jdbcType=VARCHAR}, #{queryText,jdbcType=VARCHAR},
|
|
|
- #{configCodes,jdbcType=VARCHAR}, #{rankingParams,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{configCodes,jdbcType=VARCHAR}, #{rankingParams,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{experimentId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResult" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResult" useGeneratedKeys="true">
|
|
|
<!--
|
|
<!--
|
|
@@ -210,6 +211,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="experimentId != null">
|
|
|
|
|
+ experiment_id,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="dt != null">
|
|
<if test="dt != null">
|
|
@@ -254,6 +258,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="experimentId != null">
|
|
|
|
|
+ #{experimentId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResultExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.tzld.videoVector.model.po.pgVector.VideoArticleMatchResultExample" resultType="java.lang.Long">
|
|
@@ -318,6 +325,9 @@
|
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.experimentId != null">
|
|
|
|
|
+ experiment_id = #{record.experimentId,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" />
|
|
@@ -343,7 +353,8 @@
|
|
|
query_text = #{record.queryText,jdbcType=VARCHAR},
|
|
query_text = #{record.queryText,jdbcType=VARCHAR},
|
|
|
config_codes = #{record.configCodes,jdbcType=VARCHAR},
|
|
config_codes = #{record.configCodes,jdbcType=VARCHAR},
|
|
|
ranking_params = #{record.rankingParams,jdbcType=VARCHAR},
|
|
ranking_params = #{record.rankingParams,jdbcType=VARCHAR},
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ experiment_id = #{record.experimentId,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>
|
|
@@ -397,6 +408,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="experimentId != null">
|
|
|
|
|
+ experiment_id = #{experimentId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
@@ -419,7 +433,8 @@
|
|
|
query_text = #{queryText,jdbcType=VARCHAR},
|
|
query_text = #{queryText,jdbcType=VARCHAR},
|
|
|
config_codes = #{configCodes,jdbcType=VARCHAR},
|
|
config_codes = #{configCodes,jdbcType=VARCHAR},
|
|
|
ranking_params = #{rankingParams,jdbcType=VARCHAR},
|
|
ranking_params = #{rankingParams,jdbcType=VARCHAR},
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ experiment_id = #{experimentId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
</mapper>
|
|
</mapper>
|