修复设备点播时指定流媒体
parent
66234dc288
commit
c85c994972
|
@ -0,0 +1,4 @@
|
||||||
|
alter table device
|
||||||
|
add mediaServerId varchar(50) default null;
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ CREATE TABLE `device` (
|
||||||
`transport` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`transport` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
`streamMode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`streamMode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
`online` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`online` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
|
`mediaServerId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
`registerTime` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`registerTime` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
`keepaliveTime` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`keepaliveTime` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
`ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
`ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||||
|
|
|
@ -43,6 +43,7 @@ public interface DeviceMapper {
|
||||||
"geoCoordSys," +
|
"geoCoordSys," +
|
||||||
"treeType," +
|
"treeType," +
|
||||||
"online," +
|
"online," +
|
||||||
|
"mediaServerId," +
|
||||||
"(SELECT count(0) FROM device_channel WHERE deviceId=device.deviceId) as channelCount "+
|
"(SELECT count(0) FROM device_channel WHERE deviceId=device.deviceId) as channelCount "+
|
||||||
" FROM device WHERE deviceId = #{deviceId}")
|
" FROM device WHERE deviceId = #{deviceId}")
|
||||||
Device getDeviceByDeviceId(String deviceId);
|
Device getDeviceByDeviceId(String deviceId);
|
||||||
|
@ -160,6 +161,7 @@ public interface DeviceMapper {
|
||||||
"geoCoordSys," +
|
"geoCoordSys," +
|
||||||
"treeType," +
|
"treeType," +
|
||||||
"online," +
|
"online," +
|
||||||
|
"mediaServerId," +
|
||||||
"(SELECT count(0) FROM device_channel WHERE deviceId=de.deviceId) as channelCount FROM device de" +
|
"(SELECT count(0) FROM device_channel WHERE deviceId=de.deviceId) as channelCount FROM device de" +
|
||||||
"<if test=\"online != null\"> where online=${online}</if>"+
|
"<if test=\"online != null\"> where online=${online}</if>"+
|
||||||
" </script>"
|
" </script>"
|
||||||
|
@ -271,6 +273,7 @@ public interface DeviceMapper {
|
||||||
"geoCoordSys," +
|
"geoCoordSys," +
|
||||||
"treeType," +
|
"treeType," +
|
||||||
"online" +
|
"online" +
|
||||||
|
"mediaServerId" +
|
||||||
") VALUES (" +
|
") VALUES (" +
|
||||||
"#{deviceId}," +
|
"#{deviceId}," +
|
||||||
"#{name}," +
|
"#{name}," +
|
||||||
|
@ -284,6 +287,7 @@ public interface DeviceMapper {
|
||||||
"#{geoCoordSys}," +
|
"#{geoCoordSys}," +
|
||||||
"#{treeType}," +
|
"#{treeType}," +
|
||||||
"#{online}" +
|
"#{online}" +
|
||||||
|
"#{mediaServerId}" +
|
||||||
")")
|
")")
|
||||||
void addCustomDevice(Device device);
|
void addCustomDevice(Device device);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue