diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java index fc51581c..903e8693 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java @@ -292,17 +292,17 @@ public class CommonGbChannelServiceImpl implements ICommonGbChannelService { } @Override - public void deleteGbChannelsFromList(List deleteChannelList) { - commonGbChannelMapper.deleteByDeviceIDs(deleteChannelList); + public void deleteGbChannelsFromList(List channelList) { + commonGbChannelMapper.deleteByDeviceIDs(channelList); } @Override - public void channelsOnlineFromList(List deleteChannelList) { - + public void channelsOnlineFromList(List channelList) { + commonGbChannelMapper.channelsOnlineFromList(channelList); } @Override - public void channelsOfflineFromList(List deleteChannelList) { - + public void channelsOfflineFromList(List channelList) { + commonGbChannelMapper.channelsOfflineFromList(channelList); } } diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonGbChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonGbChannelMapper.java index 4c90ff18..67707777 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonGbChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonGbChannelMapper.java @@ -289,4 +289,16 @@ public interface CommonGbChannelMapper { "") int deleteByDeviceIDs(List clearChannels); + @Update("") + void channelsOnlineFromList(List channelList); + + + @Update("") + void channelsOfflineFromList(List channelList); }