修复树形列表通道查询

This commit is contained in:
648540858 2023-06-28 15:02:59 +08:00
parent fec69c714c
commit 639e0bab11

View File

@ -1,6 +1,5 @@
package com.genersoft.iot.vmp.service.impl; package com.genersoft.iot.vmp.service.impl;
import com.genersoft.iot.vmp.common.InviteSessionType;
import com.genersoft.iot.vmp.common.VideoManagerConstants; import com.genersoft.iot.vmp.common.VideoManagerConstants;
import com.genersoft.iot.vmp.conf.DynamicTask; import com.genersoft.iot.vmp.conf.DynamicTask;
import com.genersoft.iot.vmp.conf.UserSetting; import com.genersoft.iot.vmp.conf.UserSetting;
@ -390,8 +389,8 @@ public class DeviceServiceImpl implements IDeviceService {
if (device == null) { if (device == null) {
return null; return null;
} }
if (ObjectUtils.isEmpty(parentId) || parentId.equals(deviceId)) { if (ObjectUtils.isEmpty(parentId) ) {
parentId = null; parentId = deviceId;
} }
List<DeviceChannel> rootNodes = deviceChannelMapper.getSubChannelsByDeviceId(deviceId, parentId, onlyCatalog); List<DeviceChannel> rootNodes = deviceChannelMapper.getSubChannelsByDeviceId(deviceId, parentId, onlyCatalog);
return transportChannelsToTree(rootNodes, ""); return transportChannelsToTree(rootNodes, "");