mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-21 12:57:50 +08:00
修复同步通道为空时, 更新通道异常
This commit is contained in:
parent
b159775b0e
commit
40b6580611
@ -113,6 +113,9 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||
|
||||
@Override
|
||||
public int updateChannels(Device device, List<DeviceChannel> channels) {
|
||||
if (CollectionUtils.isEmpty(channels)) {
|
||||
return 0;
|
||||
}
|
||||
List<DeviceChannel> addChannels = new ArrayList<>();
|
||||
List<DeviceChannel> updateChannels = new ArrayList<>();
|
||||
HashMap<String, DeviceChannel> channelsInStore = new HashMap<>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user