修复设备添加无法调用sdk模块登录的问题

This commit is contained in:
lxj
2025-08-29 11:30:00 +08:00
parent 6d25db8c59
commit 8afc12f3b6

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());