| | |
| | | "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); |
| | | |
| | | @Select("SELECT status FROM stream_proxy WHERE app=#{app} AND stream=#{stream}") |
| | | Boolean selectStatusForProxy(String app, String stream); |
| | | |
| | | @Select("SELECT status FROM stream_push WHERE app=#{app} AND stream=#{stream}") |
| | | Boolean selectStatusForPush(String app, String stream); |
| | | } |