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/PlatformChannelMapper.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java index 35a42c5..ae130cf 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java @@ -114,4 +114,7 @@ " left join device d on dc.deviceId = d.deviceId\n" + "where dc.channelId = #{channelId} and pgc.platformId=#{platformId}") List<Device> queryDeviceInfoByPlatformIdAndChannelId(String platformId, String channelId); + + @Select("SELECT pgc.platformId FROM platform_gb_channel pgc left join device_channel dc on dc.id = pgc.deviceChannelId WHERE dc.channelId='${channelId}'") + List<String> queryParentPlatformByChannelId(String channelId); } -- Gitblit v1.8.0