From cb7c41c3c149c821f95a0e1289a11072ebeb27b8 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 3 Jan 2025 15:10:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=9B=BD=E6=A0=87=E7=BA=A7=E8=81=94]=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96catalog=E6=8E=A8=E9=80=81=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/dao/PlatformChannelMapper.java | 4 +-- .../iot/vmp/gb28181/event/EventPublisher.java | 23 +++++--------- .../event/subscribe/catalog/CatalogEvent.java | 11 +++---- .../subscribe/catalog/CatalogEventLister.java | 7 ++--- .../impl/DeviceChannelServiceImpl.java | 13 ++++---- .../service/impl/GroupServiceImpl.java | 2 +- .../impl/PlatformChannelServiceImpl.java | 30 ++++++++++++++----- 7 files changed, 43 insertions(+), 47 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/PlatformChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/PlatformChannelMapper.java index 52c12936..9a565628 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/PlatformChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/PlatformChannelMapper.java @@ -58,8 +58,8 @@ public interface PlatformChannelMapper { "where dc.channel_type = 0 and dc.channel_id = #{channelId} and pgc.platform_id=#{platformId}") List queryDeviceInfoByPlatformIdAndChannelId(@Param("platformId") String platformId, @Param("channelId") String channelId); - @Select("SELECT pgc.platform_id from wvp_platform_channel pgc left join wvp_device_channel dc on dc.id = pgc.device_channel_id WHERE dc.channel_type = 0 and dc.device_id=#{channelId}") - List queryParentPlatformByChannelId(@Param("channelId") String channelId); + @Select("SELECT pgc.* from wvp_platform_channel pgc left join wvp_device_channel dc on dc.id = pgc.device_channel_id WHERE dc.channel_type = 0 and dc.device_id=#{channelId}") + List queryParentPlatformByChannelId(@Param("channelId") String channelId); @Select("