Compare commits

..

2 Commits

Author SHA1 Message Date
阿斌
922d76580a
Pre Merge pull request !36 from 阿斌/N/A 2025-05-07 07:10:51 +00:00
lin
40b6580611 修复同步通道为空时, 更新通道异常 2025-05-07 15:10:38 +08:00

View File

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