|
@@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="duration" column="duration" />
|
|
<result property="duration" column="duration" />
|
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
<result property="fileSize" column="file_size" />
|
|
<result property="fileSize" column="file_size" />
|
|
|
|
|
+ <result property="finishStatus" column="finish_status" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectLiveVideoVo">
|
|
<sql id="selectLiveVideoVo">
|
|
|
- select video_id, live_id, video_url, video_type, sort, create_time, create_by, update_by, update_time, remark,duration,file_size from live_video
|
|
|
|
|
|
|
+ select video_id, live_id, video_url, video_type, sort, create_time, create_by, update_by, update_time, remark,duration,file_size,finish_status from live_video
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectLiveVideoList" parameterType="LiveVideo" resultMap="LiveVideoResult">
|
|
<select id="selectLiveVideoList" parameterType="LiveVideo" resultMap="LiveVideoResult">
|
|
@@ -31,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoType != null "> and video_type = #{videoType}</if>
|
|
<if test="videoType != null "> and video_type = #{videoType}</if>
|
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
|
<if test="remark != null "> and remark like CONCAT('%',#{remark},'%')</if>
|
|
<if test="remark != null "> and remark like CONCAT('%',#{remark},'%')</if>
|
|
|
|
|
+ <if test="finishStatus != null "> and finish_status = #{finishStatus}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="duration != null">duration,</if>
|
|
<if test="duration != null">duration,</if>
|
|
|
<if test="fileSize != null">file_size,</if>
|
|
<if test="fileSize != null">file_size,</if>
|
|
|
|
|
+ <if test="finishStatus != null">finish_status,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="liveId != null">#{liveId},</if>
|
|
<if test="liveId != null">#{liveId},</if>
|
|
@@ -70,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="duration != null">#{duration},</if>
|
|
<if test="duration != null">#{duration},</if>
|
|
|
<if test="fileSize != null">#{fileSize},</if>
|
|
<if test="fileSize != null">#{fileSize},</if>
|
|
|
|
|
+ <if test="finishStatus != null">#{finishStatus},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -87,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="fileSize != null">file_size = #{fileSize},</if>
|
|
<if test="fileSize != null">file_size = #{fileSize},</if>
|
|
|
|
|
+ <if test="finishStatus != null">finish_status = #{finishStatus},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where video_id = #{videoId}
|
|
where video_id = #{videoId}
|
|
|
</update>
|
|
</update>
|