| | |
| | | "where sp.status = 1 and (gs.app, gs.stream) in (" + |
| | | "<foreach collection='offlineStreams' item='item' separator=','>" + |
| | | "(#{item.app}, #{item.stream}) " + |
| | | ")</foreach>" + |
| | | "</script>") |
| | | "</foreach>" + |
| | | ")</script>") |
| | | List<GbStream> getOnlinePusherForGbInList(List<StreamPushItemFromRedis> offlineStreams); |
| | | |
| | | @Update("<script> "+ |
| | | "UPDATE stream_push SET status=0 where (app, stream) in (" + |
| | | "<foreach collection='offlineStreams' item='item' separator=','>" + |
| | | "(#{item.app}, #{item.stream}) " + |
| | | ")</foreach>" + |
| | | "</script>") |
| | | "</foreach>" + |
| | | ")</script>") |
| | | void offline(List<StreamPushItemFromRedis> offlineStreams); |
| | | |
| | | @Select("<script> "+ |
| | |
| | | "UPDATE stream_push SET status=1 where (app, stream) in (" + |
| | | "<foreach collection='onlineStreams' item='item' separator=','>" + |
| | | "(#{item.app}, #{item.stream}) " + |
| | | ")</foreach>" + |
| | | "</script>") |
| | | "</foreach>" + |
| | | ")</script>") |
| | | void online(List<StreamPushItemFromRedis> onlineStreams); |
| | | |
| | | @Select("SELECT gs.* FROM stream_push sp left join gb_stream gs on sp.app = gs.app AND sp.stream = gs.stream where sp.status = 1") |