| | |
| | | "recordAssistPort, " + |
| | | "defaultServer, " + |
| | | "createTime, " + |
| | | "updateTime" + |
| | | "updateTime, " + |
| | | "hookAliveInterval" + |
| | | ") VALUES " + |
| | | "(" + |
| | | "'${id}', " + |
| | |
| | | "${recordAssistPort}, " + |
| | | "${defaultServer}, " + |
| | | "'${createTime}', " + |
| | | "'${updateTime}')") |
| | | "'${updateTime}', " + |
| | | "${hookAliveInterval})") |
| | | int add(MediaServerItem mediaServerItem); |
| | | |
| | | @Update(value = {" <script>" + |
| | |
| | | "<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); |
| | |
| | | "<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); |