Merge remote-tracking branch 'origin/master'

This commit is contained in:
2025-08-29 15:50:12 +08:00

View File

@@ -47,7 +47,7 @@ public class SisDeviceChannelServiceImpl implements ISisDeviceChannelService {
private final SisDeviceChannelMapper baseMapper; private final SisDeviceChannelMapper baseMapper;
private final ISisDeviceGroupService deviceGroupService; private final ISisDeviceGroupService deviceGroupService;
private HikApiService hikApiService; private final HikApiService hikApiService;
@@ -239,6 +239,7 @@ public class SisDeviceChannelServiceImpl implements ISisDeviceChannelService {
} }
} else if (DeviceTypeEnum.NVR.getType().equals(bo.getDeviceType()) || DeviceTypeEnum.DVR.getType().equals(bo.getDeviceType())) { } else if (DeviceTypeEnum.NVR.getType().equals(bo.getDeviceType()) || DeviceTypeEnum.DVR.getType().equals(bo.getDeviceType())) {
DeviceInfo channelInfo = hikApiService.getChannelInfo(bo.getDeviceIp()); DeviceInfo channelInfo = hikApiService.getChannelInfo(bo.getDeviceIp());
if (channelInfo != null && CollUtil.isNotEmpty(channelInfo.getChannelInfo())) { if (channelInfo != null && CollUtil.isNotEmpty(channelInfo.getChannelInfo())) {
List<SisDeviceChannel> insertChannels = new ArrayList<>(channelInfo.getChannelInfo().size()); List<SisDeviceChannel> insertChannels = new ArrayList<>(channelInfo.getChannelInfo().size());
List<SisDeviceChannel> updateChannels = new ArrayList<>(channelInfo.getChannelInfo().size()); List<SisDeviceChannel> updateChannels = new ArrayList<>(channelInfo.getChannelInfo().size());