|
@@ -9,7 +9,9 @@
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
|
<result column="video" jdbcType="VARCHAR" property="video" />
|
|
|
<result column="score" jdbcType="DOUBLE" property="score" />
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_timestamp" jdbcType="BIGINT" property="createTimestamp" />
|
|
|
+ <result column="update_timestamp" jdbcType="BIGINT" property="updateTimestamp" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -70,7 +72,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, dt, video_id, category, title, video, score, create_timestamp
|
|
|
+ id, dt, video_id, category, title, video, score, `status`, create_timestamp, update_timestamp
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformVideoExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -108,10 +110,12 @@
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformVideo">
|
|
|
insert into content_platform_video (id, dt, video_id,
|
|
|
category, title, video,
|
|
|
- score, create_timestamp)
|
|
|
+ score, `status`, create_timestamp,
|
|
|
+ update_timestamp)
|
|
|
values (#{id,jdbcType=BIGINT}, #{dt,jdbcType=VARCHAR}, #{videoId,jdbcType=BIGINT},
|
|
|
#{category,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR},
|
|
|
- #{score,jdbcType=DOUBLE}, #{createTimestamp,jdbcType=BIGINT})
|
|
|
+ #{score,jdbcType=DOUBLE}, #{status,jdbcType=INTEGER}, #{createTimestamp,jdbcType=BIGINT},
|
|
|
+ #{updateTimestamp,jdbcType=BIGINT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformVideo">
|
|
|
insert into content_platform_video
|
|
@@ -137,9 +141,15 @@
|
|
|
<if test="score != null">
|
|
|
score,
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ `status`,
|
|
|
+ </if>
|
|
|
<if test="createTimestamp != null">
|
|
|
create_timestamp,
|
|
|
</if>
|
|
|
+ <if test="updateTimestamp != null">
|
|
|
+ update_timestamp,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -163,9 +173,15 @@
|
|
|
<if test="score != null">
|
|
|
#{score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTimestamp != null">
|
|
|
#{createTimestamp,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="updateTimestamp != null">
|
|
|
+ #{updateTimestamp,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformVideoExample" resultType="java.lang.Long">
|
|
@@ -198,9 +214,15 @@
|
|
|
<if test="record.score != null">
|
|
|
score = #{record.score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="record.status != null">
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.createTimestamp != null">
|
|
|
create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.updateTimestamp != null">
|
|
|
+ update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -215,7 +237,9 @@
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
video = #{record.video,jdbcType=VARCHAR},
|
|
|
score = #{record.score,jdbcType=DOUBLE},
|
|
|
- create_timestamp = #{record.createTimestamp,jdbcType=BIGINT}
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ create_timestamp = #{record.createTimestamp,jdbcType=BIGINT},
|
|
|
+ update_timestamp = #{record.updateTimestamp,jdbcType=BIGINT}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -241,9 +265,15 @@
|
|
|
<if test="score != null">
|
|
|
score = #{score,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTimestamp != null">
|
|
|
create_timestamp = #{createTimestamp,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="updateTimestamp != null">
|
|
|
+ update_timestamp = #{updateTimestamp,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -255,7 +285,9 @@
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
video = #{video,jdbcType=VARCHAR},
|
|
|
score = #{score,jdbcType=DOUBLE},
|
|
|
- create_timestamp = #{createTimestamp,jdbcType=BIGINT}
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
+ create_timestamp = #{createTimestamp,jdbcType=BIGINT},
|
|
|
+ update_timestamp = #{updateTimestamp,jdbcType=BIGINT}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|