From 60c4f767f094d15711aa48b19b4e05e65999625a Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 07 九月 2022 16:18:52 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java index 73fff57..df9143d 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java @@ -143,4 +143,19 @@ "</foreach>" + "</script>") List<GbStream> selectAllForAppAndStream(List<StreamPushItem> streamPushItems); + + @Update("UPDATE gb_stream " + + "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); } -- Gitblit v1.8.0