From ed5dde81f6b5156a269b3513ea3dcd49a0ce1676 Mon Sep 17 00:00:00 2001 From: 刘跃龙 <yjkhtddx@sina.com> Date: 星期三, 29 三月 2023 09:59:47 +0800 Subject: [PATCH] 优先使用SIP认证用户名 --- src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java index b30ca19..fcd59b0 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java @@ -43,6 +43,7 @@ "geoCoordSys," + "treeType," + "online," + + "mediaServerId," + "(SELECT count(0) FROM device_channel WHERE deviceId=device.deviceId) as channelCount "+ " FROM device WHERE deviceId = #{deviceId}") Device getDeviceByDeviceId(String deviceId); @@ -160,6 +161,7 @@ "geoCoordSys," + "treeType," + "online," + + "mediaServerId," + "(SELECT count(0) FROM device_channel WHERE deviceId=de.deviceId) as channelCount FROM device de" + "<if test=\"online != null\"> where online=${online}</if>"+ " </script>" @@ -271,6 +273,7 @@ "geoCoordSys," + "treeType," + "online" + + "mediaServerId" + ") VALUES (" + "#{deviceId}," + "#{name}," + @@ -284,6 +287,7 @@ "#{geoCoordSys}," + "#{treeType}," + "#{online}" + + "#{mediaServerId}" + ")") void addCustomDevice(Device device); -- Gitblit v1.8.0