@ -41,15 +41,15 @@ public interface GbStreamMapper {
"SELECT gs.* FROM gb_stream gs "+
"WHERE "+
"1=1 "+
" <if test='catalogId != null'> AND gs.gbStreamId in"+
" <if test='catalogId != null'> AND gs.gbId in"+
"(select pgs.gbStreamId from platform_gb_stream pgs where pgs.platformId = #{platformId} and pgs.catalogId=#{catalogId})</if> "+
" <if test='catalogId == null'> AND gs.gbStreamId not in"+
" <if test='catalogId == null'> AND gs.gbId not in"+
"(select pgs.gbStreamId from platform_gb_stream pgs where pgs.platformId = #{platformId}) </if> "+
" <if test='query != null'> AND (gs.app LIKE '%${query}%' OR gs.stream LIKE '%${query}%' OR gs.gbId LIKE '%${query}%' OR gs.name LIKE '%${query}%')</if> "+
" <if test='pushing == true' > AND gs.status=1</if>"+
" <if test='pushing == false' > AND gs.status=0</if>"+
" <if test='mediaServerId != null' > AND gs.mediaServerId=#{mediaServerId} </if>"+
@Delete("DELETE FROM platform_gb_stream WHERE gbStreamId = (select id from gb_stream where app=#{app} AND stream=#{stream}) AND platformId=#{platformId}")
@Delete("DELETE FROM platform_gb_stream WHERE gbStreamId = (select gbId from gb_stream where app=#{app} AND stream=#{stream}) AND platformId=#{platformId}")