查询流地址时mediaServerId改为可选

This commit is contained in:
648540858
2021-11-22 17:29:16 +08:00
parent 692348c395
commit 0199676a6d
5 changed files with 21 additions and 3 deletions

View File

@@ -105,4 +105,7 @@ public interface MediaServerMapper {
@Select("SELECT * FROM media_server WHERE ip='${host}' and httpPort=${port}")
MediaServerItem queryOneByHostAndPort(String host, int port);
@Select("SELECT * FROM media_server WHERE defaultServer=1")
MediaServerItem queryDefault();
}