修复设备添加无法调用sdk模块登录的问题
This commit is contained in:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user