1.根据redis消息更新推流列表时同时更新在线状态

2.推流列表的模板增加在线状态
This commit is contained in:
jiang
2022-09-07 15:56:48 +08:00
parent e7bdcc1f8d
commit 3884e9a56a
5 changed files with 18 additions and 4 deletions

View File

@@ -23,10 +23,10 @@ public interface PlatformGbStreamMapper {
@Insert("<script> " +
"INSERT into platform_gb_stream " +
"(gbStreamId, platformId, catalogId) " +
"(gbStreamId, platformId, catalogId,status) " +
"values " +
"<foreach collection='streamPushItems' index='index' item='item' separator=','> " +
"(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}')" +
"(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}'), '${item.status}')" +
"</foreach> " +
"</script>")
int batchAdd(List<StreamPushItem> streamPushItems);