优化节点在线状态

This commit is contained in:
648540858
2024-03-20 18:54:39 +08:00
parent 8ae17764fd
commit 181bf76862
23 changed files with 334 additions and 373 deletions

View File

@@ -34,6 +34,7 @@ public interface MediaServerMapper {
"record_day,"+
"record_path,"+
"default_server,"+
"type,"+
"create_time,"+
"update_time,"+
"hook_alive_interval"+
@@ -60,6 +61,7 @@ public interface MediaServerMapper {
"#{recordDay}, " +
"#{recordPath}, " +
"#{defaultServer}, " +
"#{type}, " +
"#{createTime}, " +
"#{updateTime}, " +
"#{hookAliveInterval})")
@@ -88,6 +90,7 @@ public interface MediaServerMapper {
"<if test=\"hookAliveInterval != null\">, hook_alive_interval=#{hookAliveInterval}</if>" +
"<if test=\"recordDay != null\">, record_day=#{recordDay}</if>" +
"<if test=\"recordPath != null\">, record_path=#{recordPath}</if>" +
"<if test=\"type != null\">, type=#{type}</if>" +
"WHERE id=#{id}"+
" </script>"})
int update(MediaServerItem mediaServerItem);
@@ -113,6 +116,7 @@ public interface MediaServerMapper {
"<if test=\"recordAssistPort != null\">, record_assist_port=#{recordAssistPort}</if>" +
"<if test=\"recordDay != null\">, record_day=#{recordDay}</if>" +
"<if test=\"recordPath != null\">, record_path=#{recordPath}</if>" +
"<if test=\"type != null\">, type=#{type}</if>" +
"<if test=\"hookAliveInterval != null\">, hook_alive_interval=#{hookAliveInterval}</if>" +
"WHERE ip=#{ip} and http_port=#{httpPort}"+
" </script>"})