|
|
@@ -164,6 +164,7 @@ public interface LiveMapper
|
|
|
"select * from live where 1=1 " +
|
|
|
" <if test='param.companyId!=null' > and company_id = #{param.companyId} </if> and live_type IN (1,2, 3) AND status IN (3, 4) AND is_del = 0 and is_audit=1 " +
|
|
|
" <if test='param.liveName!=null' > and live_name like concat('%' ,#{param.liveName},'%') </if> " +
|
|
|
+ " <if test='param.startTime!=null and param.endTime!=null' > and start_time between #{param.startTime} and #{param.endTime} </if> " +
|
|
|
" UNION " +
|
|
|
"select l.* from live l " +
|
|
|
"LEFT JOIN ( " +
|
|
|
@@ -179,6 +180,7 @@ public interface LiveMapper
|
|
|
"and TIMESTAMPDIFF(SECOND, l.start_time, NOW()) > COALESCE(video_duration.total_duration, 0) " +
|
|
|
"and COALESCE(video_duration.total_duration, 0) > 0 " +
|
|
|
" <if test='param.liveName!=null' > and l.live_name like concat('%' ,#{param.liveName},'%') </if> " +
|
|
|
+ " <if test='param.startTime!=null and param.endTime!=null' > and l.start_time between #{param.startTime} and #{param.endTime} </if> " +
|
|
|
") as temp " +
|
|
|
" </script>"})
|
|
|
int listLiveDataCount(@Param("param") LiveDataParam param);
|