From 40b65806118a872229355bfcaf6dd1c994118ae7 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Wed, 7 May 2025 15:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5=E9=80=9A?= =?UTF-8?q?=E9=81=93=E4=B8=BA=E7=A9=BA=E6=97=B6,=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=80=9A=E9=81=93=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/service/impl/DeviceChannelServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/DeviceChannelServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/DeviceChannelServiceImpl.java index 3fb8fae97..ba4644632 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/DeviceChannelServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/DeviceChannelServiceImpl.java @@ -113,6 +113,9 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService { @Override public int updateChannels(Device device, List channels) { + if (CollectionUtils.isEmpty(channels)) { + return 0; + } List addChannels = new ArrayList<>(); List updateChannels = new ArrayList<>(); HashMap channelsInStore = new HashMap<>();