|
@@ -32,18 +32,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isAudit" column="is_audit" />
|
|
<result property="isAudit" column="is_audit" />
|
|
|
<result property="idCardUrl" column="id_card_url" />
|
|
<result property="idCardUrl" column="id_card_url" />
|
|
|
<result property="liveCodeUrl" column="live_code_url" />
|
|
<result property="liveCodeUrl" column="live_code_url" />
|
|
|
|
|
+ <result property="globalVisible" column="global_visible" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectLiveVo">
|
|
<sql id="selectLiveVo">
|
|
|
select live_id, company_id, company_user_id,talent_id, live_name, is_audit, live_desc, show_type, status, anchor_id, live_type, start_time, finish_time,
|
|
select live_id, company_id, company_user_id,talent_id, live_name, is_audit, live_desc, show_type, status, anchor_id, live_type, start_time, finish_time,
|
|
|
live_img_url, live_config, id_card_url, is_show, is_del, qw_qr_code, rtmp_url, flv_hls_url,
|
|
live_img_url, live_config, id_card_url, is_show, is_del, qw_qr_code, rtmp_url, flv_hls_url,
|
|
|
- create_time, create_by, update_by, update_time, remark,config_json from live
|
|
|
|
|
|
|
+ create_time, create_by, update_by, update_time, remark,config_json,global_visible from live
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="liveList" parameterType="Live" resultMap="LiveResult">
|
|
<select id="liveList" parameterType="Live" resultMap="LiveResult">
|
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
|
- a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url,c.company_name,b.file_size
|
|
|
|
|
|
|
+ a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url,c.company_name,b.file_size,a.global_visible
|
|
|
from live
|
|
from live
|
|
|
a
|
|
a
|
|
|
left join live_video b on a.live_id = b.live_id
|
|
left join live_video b on a.live_id = b.live_id
|
|
@@ -55,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectReadyStartLiveList" parameterType="Live" resultMap="LiveResult">
|
|
<select id="selectReadyStartLiveList" parameterType="Live" resultMap="LiveResult">
|
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
|
- a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url,c.company_name,b.file_size
|
|
|
|
|
|
|
+ a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url,c.company_name,b.file_size,a.global_visible
|
|
|
from live
|
|
from live
|
|
|
a
|
|
a
|
|
|
left join live_video b on a.live_id = b.live_id
|
|
left join live_video b on a.live_id = b.live_id
|
|
@@ -69,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectLiveList" parameterType="com.fs.live.domain.Live" resultMap="LiveResult">
|
|
<select id="selectLiveList" parameterType="com.fs.live.domain.Live" resultMap="LiveResult">
|
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
select a.live_id, a.company_id, a.company_user_id,talent_id, a.live_name, a.is_audit, a.live_desc, a.show_type, a.status, a.anchor_id,
|
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
a.live_type, a.start_time, a.finish_time, a.live_img_url, a.live_config, a.id_card_url, a.is_show, a.is_del, a.qw_qr_code, a.rtmp_url,
|
|
|
- a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url
|
|
|
|
|
|
|
+ a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url,a.global_visible
|
|
|
,c.live_code_url,IFNULL(d.company_name, '总台') AS company_name,b.file_size
|
|
,c.live_code_url,IFNULL(d.company_name, '总台') AS company_name,b.file_size
|
|
|
|
|
|
|
|
from live a
|
|
from live a
|
|
@@ -159,6 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flvHlsUrl != null">flv_hls_url,</if>
|
|
<if test="flvHlsUrl != null">flv_hls_url,</if>
|
|
|
<if test="isAudit != null">is_audit,</if>
|
|
<if test="isAudit != null">is_audit,</if>
|
|
|
<if test="idCardUrl != null">id_card_url,</if>
|
|
<if test="idCardUrl != null">id_card_url,</if>
|
|
|
|
|
+ <if test="globalVisible != null">global_visible,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
@@ -187,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flvHlsUrl != null">#{flvHlsUrl},</if>
|
|
<if test="flvHlsUrl != null">#{flvHlsUrl},</if>
|
|
|
<if test="isAudit != null">#{isAudit},</if>
|
|
<if test="isAudit != null">#{isAudit},</if>
|
|
|
<if test="idCardUrl != null">#{idCardUrl},</if>
|
|
<if test="idCardUrl != null">#{idCardUrl},</if>
|
|
|
|
|
+ <if test="globalVisible != null">#{globalVisible},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -218,6 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flvHlsUrl != null">flv_hls_url = #{flvHlsUrl},</if>
|
|
<if test="flvHlsUrl != null">flv_hls_url = #{flvHlsUrl},</if>
|
|
|
<if test="isAudit != null">is_audit = #{isAudit},</if>
|
|
<if test="isAudit != null">is_audit = #{isAudit},</if>
|
|
|
<if test="idCardUrl != null">id_card_url = #{idCardUrl},</if>
|
|
<if test="idCardUrl != null">id_card_url = #{idCardUrl},</if>
|
|
|
|
|
+ <if test="globalVisible != null">global_visible = #{globalVisible},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where live_id = #{liveId}
|
|
where live_id = #{liveId}
|
|
|
</update>
|
|
</update>
|
|
@@ -283,6 +287,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="live.isDel != null">is_del = #{live.isDel},</if>
|
|
<if test="live.isDel != null">is_del = #{live.isDel},</if>
|
|
|
<if test="live.liveConfig != null and live.liveConfig != ''">live_config = #{live.liveConfig},</if>
|
|
<if test="live.liveConfig != null and live.liveConfig != ''">live_config = #{live.liveConfig},</if>
|
|
|
<if test="live.remark != null and live.remark != ''">remark = #{live.remark},</if>
|
|
<if test="live.remark != null and live.remark != ''">remark = #{live.remark},</if>
|
|
|
|
|
+ <if test="live.globalVisible != null and live.globalVisible != ''">global_visible = #{live.globalVisible},</if>
|
|
|
update_time = NOW()
|
|
update_time = NOW()
|
|
|
</set>
|
|
</set>
|
|
|
WHERE live_id = #{live.liveId}
|
|
WHERE live_id = #{live.liveId}
|