@ -62,10 +70,13 @@ public interface StreamPushMapper {
@Delete("DELETE FROM stream_push")
@Delete("DELETE FROM stream_push")
voidclear();
voidclear();
@Delete("DELETE FROM stream_push WHERE mediaServerId=#{mediaServerId}")
@Delete("DELETE sp FROM stream_push sp left join gb_stream gs on gs.app = sp.app and gs.stream= sp.stream WHERE sp.mediaServerId=#{mediaServerId} and gs.gbId is null ")
voiddeleteWithoutGBId(StringmediaServerId);
voiddeleteWithoutGBId(StringmediaServerId);
@Select("SELECT * FROM stream_push WHERE mediaServerId=#{mediaServerId}")
@Select("SELECT * FROM stream_push WHERE mediaServerId=#{mediaServerId}")
@Select("SELECT sp.* FROM stream_push sp left join gb_stream gs on gs.app = sp.app and gs.stream= sp.stream WHERE sp.mediaServerId=#{mediaServerId} and gs.gbId is null")