|
|
@@ -14,11 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="duration" column="duration" />
|
|
|
<result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLiveVideoVo">
|
|
|
- select video_id, live_id, video_url, video_type, sort, create_time, create_by, update_by, update_time, remark from live_video
|
|
|
+ select video_id, live_id, video_url, video_type, sort, create_time, create_by, update_by, update_time, remark,duration from live_video
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectLiveVideoList" parameterType="LiveVideo" resultMap="LiveVideoResult">
|
|
|
@@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
|
|
|
<if test="videoType != null "> and video_type = #{videoType}</if>
|
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
|
+ <if test="remark != null "> and remark like CONCAT('%',#{remark},'%')</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="duration != null">duration,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="liveId != null">#{liveId},</if>
|
|
|
@@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="duration != null">#{duration},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|