From 8795281443b611a386c342beabefbdcb31e4e1f7 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Thu, 18 Jan 2024 10:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF=E9=80=9A=E7=94=A8=E9=80=9A=E9=81=93=E4=B8=8D=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../genersoft/iot/vmp/service/impl/DeviceServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java index 98ea89f0..63e32df3 100755 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java @@ -154,10 +154,10 @@ public class DeviceServiceImpl implements IDeviceService { logger.error("[命令发送失败] 查询设备信息: {}", e.getMessage()); } sync(device); - List ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId()); - if (!ids.isEmpty()) { - commonGbChannelService.onlineForList(ids); - } + } + List ids = deviceChannelMapper.getCommonChannelIdList(device.getDeviceId()); + if (!ids.isEmpty()) { + commonGbChannelService.onlineForList(ids); } // 上线添加订阅 if (device.getSubscribeCycleForCatalog() > 0) {