|
|
@@ -4,8 +4,10 @@
|
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.longarticle.model.po.longarticle.VectorMatchVideo">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="content_id" jdbcType="VARCHAR" property="contentId" />
|
|
|
+ <result column="flow_pool_level" jdbcType="VARCHAR" property="flowPoolLevel" />
|
|
|
<result column="video_id" jdbcType="BIGINT" property="videoId" />
|
|
|
<result column="score" jdbcType="DOUBLE" property="score" />
|
|
|
+ <result column="rov" jdbcType="DOUBLE" property="rov" />
|
|
|
<result column="config_code" jdbcType="VARCHAR" property="configCode" />
|
|
|
<result column="video_title" jdbcType="VARCHAR" property="videoTitle" />
|
|
|
<result column="video_oss_path" jdbcType="VARCHAR" property="videoOssPath" />
|
|
|
@@ -72,8 +74,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, content_id, video_id, score, config_code, video_title, video_oss_path, cover_url,
|
|
|
- `status`, create_time
|
|
|
+ id, content_id, flow_pool_level, video_id, score, rov, config_code, video_title,
|
|
|
+ video_oss_path, cover_url, `status`, create_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.VectorMatchVideoExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -109,14 +111,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.VectorMatchVideo">
|
|
|
- insert into long_articles_vector_match_videos (id, content_id, video_id,
|
|
|
- score, config_code, video_title,
|
|
|
- video_oss_path, cover_url, `status`,
|
|
|
- create_time)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{contentId,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT},
|
|
|
- #{score,jdbcType=DOUBLE}, #{configCode,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR},
|
|
|
- #{videoOssPath,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into long_articles_vector_match_videos (id, content_id, flow_pool_level,
|
|
|
+ video_id, score, rov, config_code,
|
|
|
+ video_title, video_oss_path, cover_url,
|
|
|
+ `status`, create_time)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{contentId,jdbcType=VARCHAR}, #{flowPoolLevel,jdbcType=VARCHAR},
|
|
|
+ #{videoId,jdbcType=BIGINT}, #{score,jdbcType=DOUBLE}, #{rov,jdbcType=DOUBLE}, #{configCode,jdbcType=VARCHAR},
|
|
|
+ #{videoTitle,jdbcType=VARCHAR}, #{videoOssPath,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR},
|
|
|
+ #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.VectorMatchVideo">
|
|
|
insert into long_articles_vector_match_videos
|
|
|
@@ -127,12 +129,18 @@
|
|
|
<if test="contentId != null">
|
|
|
content_id,
|
|
|
</if>
|
|
|
+ <if test="flowPoolLevel != null">
|
|
|
+ flow_pool_level,
|
|
|
+ </if>
|
|
|
<if test="videoId != null">
|
|
|
video_id,
|
|
|
</if>
|
|
|
<if test="score != null">
|
|
|
score,
|
|
|
</if>
|
|
|
+ <if test="rov != null">
|
|
|
+ rov,
|
|
|
+ </if>
|
|
|
<if test="configCode != null">
|
|
|
config_code,
|
|
|
</if>
|
|
|
@@ -159,12 +167,18 @@
|
|
|
<if test="contentId != null">
|
|
|
#{contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="flowPoolLevel != null">
|
|
|
+ #{flowPoolLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="videoId != null">
|
|
|
#{videoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="score != null">
|
|
|
#{score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="rov != null">
|
|
|
+ #{rov,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
<if test="configCode != null">
|
|
|
#{configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -200,12 +214,18 @@
|
|
|
<if test="record.contentId != null">
|
|
|
content_id = #{record.contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.flowPoolLevel != null">
|
|
|
+ flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.videoId != null">
|
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="record.score != null">
|
|
|
score = #{record.score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="record.rov != null">
|
|
|
+ rov = #{record.rov,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
<if test="record.configCode != null">
|
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -233,8 +253,10 @@
|
|
|
update long_articles_vector_match_videos
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
content_id = #{record.contentId,jdbcType=VARCHAR},
|
|
|
+ flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
|
|
|
video_id = #{record.videoId,jdbcType=BIGINT},
|
|
|
score = #{record.score,jdbcType=DOUBLE},
|
|
|
+ rov = #{record.rov,jdbcType=DOUBLE},
|
|
|
config_code = #{record.configCode,jdbcType=VARCHAR},
|
|
|
video_title = #{record.videoTitle,jdbcType=VARCHAR},
|
|
|
video_oss_path = #{record.videoOssPath,jdbcType=VARCHAR},
|
|
|
@@ -251,12 +273,18 @@
|
|
|
<if test="contentId != null">
|
|
|
content_id = #{contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="flowPoolLevel != null">
|
|
|
+ flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="videoId != null">
|
|
|
video_id = #{videoId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="score != null">
|
|
|
score = #{score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="rov != null">
|
|
|
+ rov = #{rov,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
<if test="configCode != null">
|
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -281,8 +309,10 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.VectorMatchVideo">
|
|
|
update long_articles_vector_match_videos
|
|
|
set content_id = #{contentId,jdbcType=VARCHAR},
|
|
|
+ flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
|
|
|
video_id = #{videoId,jdbcType=BIGINT},
|
|
|
score = #{score,jdbcType=DOUBLE},
|
|
|
+ rov = #{rov,jdbcType=DOUBLE},
|
|
|
config_code = #{configCode,jdbcType=VARCHAR},
|
|
|
video_title = #{videoTitle,jdbcType=VARCHAR},
|
|
|
video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
|