|
@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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" />
|
|
<result property="finishStatus" column="finish_status" />
|
|
|
|
|
+ <result property="companyIds" column="company_ids" typeHandler="com.fs.live.domain.handler.CompanyIdsTypeHandler" />
|
|
|
</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,finish_status 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,company_ids from live_video
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectLiveVideoList" parameterType="LiveVideo" resultMap="LiveVideoResult">
|
|
<select id="selectLiveVideoList" parameterType="LiveVideo" resultMap="LiveVideoResult">
|
|
@@ -33,6 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
<if test="finishStatus != null "> and finish_status = #{finishStatus}</if>
|
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
|
+ and (company_ids IS NULL OR company_ids = '' OR company_ids = '[]' OR JSON_CONTAINS(company_ids, CAST(#{companyId} AS JSON), '$'))
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -60,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
<if test="finishStatus != null">finish_status,</if>
|
|
|
|
|
+ <if test="companyIds != null">company_ids,</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>
|
|
@@ -74,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
<if test="finishStatus != null">#{finishStatus},</if>
|
|
|
|
|
+ <if test="companyIds != null">#{companyIds, typeHandler=com.fs.live.domain.handler.CompanyIdsTypeHandler},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -92,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
<if test="finishStatus != null">finish_status = #{finishStatus},</if>
|
|
|
|
|
+ <if test="companyIds != null">company_ids = #{companyIds, typeHandler=com.fs.live.domain.handler.CompanyIdsTypeHandler},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where video_id = #{videoId}
|
|
where video_id = #{videoId}
|
|
|
</update>
|
|
</update>
|