根据redis消息更新推流列表
This commit is contained in:
@@ -148,4 +148,14 @@ public interface GbStreamMapper {
|
||||
"SET mediaServerId=#{mediaServerId}" +
|
||||
"WHERE app=#{app} AND stream=#{stream}")
|
||||
void updateMediaServer(String app, String stream, String mediaServerId);
|
||||
|
||||
@Update("<script> "+
|
||||
" <foreach collection='list' item='item' index='index' separator=';'>"+
|
||||
"UPDATE gb_stream " +
|
||||
" SET name=#{item.name},"+
|
||||
" gbId=#{item.gbId}"+
|
||||
" WHERE app=#{item.app} and stream=#{item.stream}"+
|
||||
"</foreach>"+
|
||||
"</script>")
|
||||
int updateGbIdOrName(List<StreamPushItem> streamPushItemForUpdate);
|
||||
}
|
||||
|
||||
@@ -168,4 +168,7 @@ public interface StreamPushMapper {
|
||||
|
||||
@Update("UPDATE stream_push SET status=0")
|
||||
void setAllStreamOffline();
|
||||
|
||||
@Select("SELECT CONCAT(app,stream) FROM gb_stream")
|
||||
List<String> getAllAppAndStream();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user