|
|
@ -13,6 +13,8 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="task_id" jdbcType="VARCHAR" property="taskId" /> |
|
|
|
<result column="video_url_origin" jdbcType="VARCHAR" property="videoUrlOrigin" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -74,7 +76,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, compete_time_id, project_id, player_id, user_id, video_url, upload_time, upload_status, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
created_at, updated_at, rec_status, task_id, video_url_origin |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteVideoExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -110,11 +112,13 @@ |
|
|
|
insert into t_compete_video (id, compete_time_id, project_id, |
|
|
|
player_id, user_id, video_url, |
|
|
|
upload_time, upload_status, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
updated_at, rec_status, task_id, |
|
|
|
video_url_origin) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|
|
|
#{playerId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{videoUrl,jdbcType=VARCHAR}, |
|
|
|
#{uploadTime,jdbcType=BIGINT}, #{uploadStatus,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{taskId,jdbcType=VARCHAR}, |
|
|
|
#{videoUrlOrigin,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteVideo"> |
|
|
|
insert into t_compete_video |
|
|
@ -152,6 +156,12 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id, |
|
|
|
</if> |
|
|
|
<if test="videoUrlOrigin != null"> |
|
|
|
video_url_origin, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -187,6 +197,12 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
#{taskId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="videoUrlOrigin != null"> |
|
|
|
#{videoUrlOrigin,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteVideoExample" resultType="java.lang.Long"> |
|
|
@ -231,6 +247,12 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.taskId != null"> |
|
|
|
task_id = #{record.taskId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.videoUrlOrigin != null"> |
|
|
|
video_url_origin = #{record.videoUrlOrigin,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -248,7 +270,9 @@ |
|
|
|
upload_status = #{record.uploadStatus,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
task_id = #{record.taskId,jdbcType=VARCHAR}, |
|
|
|
video_url_origin = #{record.videoUrlOrigin,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -286,6 +310,12 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id = #{taskId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="videoUrlOrigin != null"> |
|
|
|
video_url_origin = #{videoUrlOrigin,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -300,7 +330,9 @@ |
|
|
|
upload_status = #{uploadStatus,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
task_id = #{taskId,jdbcType=VARCHAR}, |
|
|
|
video_url_origin = #{videoUrlOrigin,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |