修复NOTIFY消息中通道的状态变化

This commit is contained in:
648540858
2024-09-19 16:20:03 +08:00
parent dc12bcf8f1
commit 43a2344ad0
4 changed files with 14 additions and 18 deletions

View File

@@ -50,12 +50,12 @@ public interface IDeviceChannelService {
/**
* 批量上线
*/
int channelsOnline(List<DeviceChannel> channels);
int channelsOnlineForNotify(List<DeviceChannel> channels);
/**
* 批量下线
*/
int channelsOffline(List<DeviceChannel> channels);
int channelsOfflineForNotify(List<DeviceChannel> channels);
/**
* 获取一个通道

View File

@@ -198,8 +198,8 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
}
@Override
public int channelsOnline(List<DeviceChannel> channels) {
return channelMapper.batchOnline(channels);
public int channelsOnlineForNotify(List<DeviceChannel> channels) {
return channelMapper.batchOnlineForNotify(channels);
}
@Override
@@ -208,8 +208,8 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
}
@Override
public int channelsOffline(List<DeviceChannel> channels) {
return channelMapper.batchOffline(channels);
public int channelsOfflineForNotify(List<DeviceChannel> channels) {
return channelMapper.batchOfflineForNotify(channels);
}