From 9b1af8ef1396de45884fe86c56844714045b82ec Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 07 十二月 2021 21:13:55 +0800
Subject: [PATCH] 适配zlm的hook保活

---
 src/main/java/com/genersoft/iot/vmp/storager/dao/MediaServerMapper.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/MediaServerMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/MediaServerMapper.java
index aaa1845..4e09e79 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/MediaServerMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/MediaServerMapper.java
@@ -36,7 +36,8 @@
             "recordAssistPort, " +
             "defaultServer, " +
             "createTime, " +
-            "updateTime" +
+            "updateTime, " +
+            "hookAliveInterval" +
             ") VALUES " +
             "(" +
             "'${id}', " +
@@ -60,7 +61,8 @@
             "${recordAssistPort}, " +
             "${defaultServer}, " +
             "'${createTime}', " +
-            "'${updateTime}')")
+            "'${updateTime}', " +
+            "${hookAliveInterval})")
     int add(MediaServerItem mediaServerItem);
 
     @Update(value = {" <script>" +
@@ -84,6 +86,7 @@
             "<if test=\"sendRtpPortRange != null\">, sendRtpPortRange='${sendRtpPortRange}'</if>" +
             "<if test=\"secret != null\">, secret='${secret}'</if>" +
             "<if test=\"recordAssistPort != null\">, recordAssistPort=${recordAssistPort}</if>" +
+            "<if test=\"hookAliveInterval != null\">, hookAliveInterval=${hookAliveInterval}</if>" +
             "WHERE id='${id}'"+
             " </script>"})
     int update(MediaServerItem mediaServerItem);
@@ -108,6 +111,7 @@
             "<if test=\"sendRtpPortRange != null\">, sendRtpPortRange='${sendRtpPortRange}'</if>" +
             "<if test=\"secret != null\">, secret='${secret}'</if>" +
             "<if test=\"recordAssistPort != null\">, recordAssistPort=${recordAssistPort}</if>" +
+            "<if test=\"hookAliveInterval != null\">, hookAliveInterval=${hookAliveInterval}</if>" +
             "WHERE ip='${ip}' and httpPort=${httpPort}"+
             " </script>"})
     int updateByHostAndPort(MediaServerItem mediaServerItem);

--
Gitblit v1.8.0