Browse Source

直播间重复的问题

yuhongqi 1 month ago
parent
commit
0b439d4dd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs-service-system/src/main/resources/mapper/live/LiveMapper.xml

+ 2 - 2
fs-service-system/src/main/resources/mapper/live/LiveMapper.xml

@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         a.flv_hls_url, a.create_time, a.create_by, a.update_by, a.update_time, a.remark,config_json, b.video_url from live
         a
         left join live_video b on a.live_id = b.live_id
-        where 1=1 and is_del = 0 and is_show = 1 and status in (2,4)
+        where 1=1 and is_del = 0 and is_show = 1 and status in (2,4) and b.video_type = 1
 
         order by create_time desc
     </select>
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             left join live_company_code c on a.live_id = c.live_id
             and c.company_id = #{companyId}
             and c.company_user_id = #{companyUserId}
-        where 1=1 and is_del = 0
+        where 1=1 and is_del = 0 and b.video_type = 1
         <if test="companyId != null "> and (a.company_id = #{companyId} or a.company_id is null )</if>
         <if test="talentId != null "> and talent_id = #{talentId}</if>
         <if test="liveName != null  and liveName != ''"> and live_name like concat('%', #{liveName}, '%')</if>