package com.genersoft.iot.vmp.gb28181.service; import com.genersoft.iot.vmp.gb28181.bean.*; import com.github.pagehelper.PageInfo; import java.util.Collection; import java.util.List; public interface IGbChannelService { CommonGBChannel queryByDeviceId(String gbDeviceId); int add(CommonGBChannel commonGBChannel); int delete(int gbId); void delete(Collection ids); int update(CommonGBChannel commonGBChannel); int offline(CommonGBChannel commonGBChannel); int offline(List commonGBChannelList); int online(CommonGBChannel commonGBChannel); int online(List commonGBChannelList); void batchAdd(List commonGBChannels); void updateStatus(List channelList); List queryByPlatform(Platform platform); CommonGBChannel getOne(int id); List getIndustryCodeList(); List getDeviceTypeList(); List getNetworkIdentificationTypeList(); void reset(int id); PageInfo queryList(int page, int count, String query, Boolean online, Boolean hasCivilCode, Boolean hasGroup); void removeCivilCode(List allChildren); void addChannelToRegion(String civilCode, List channelIds); void deleteChannelToRegion(String civilCode, List channelIds); void deleteChannelToRegionByCivilCode(String civilCode); void deleteChannelToRegionByChannelIds(List channelIds); void addChannelToRegionByGbDevice(String civilCode, List deviceIds); void deleteChannelToRegionByGbDevice(List deviceIds); void removeParentIdByBusinessGroup(String businessGroup); void removeParentIdByGroupList(List groupList); void updateBusinessGroup(String oldBusinessGroup, String newBusinessGroup); void updateParentIdGroup(String oldParentId, String newParentId); void addChannelToGroup(String parentId, String businessGroup, List channelIds); void deleteChannelToGroup(String parentId, String businessGroup, List channelIds); void addChannelToGroupByGbDevice(String parentId, String businessGroup, List deviceIds); void deleteChannelToGroupByGbDevice(List deviceIds); void batchUpdate(List commonGBChannels); CommonGBChannel queryOneWithPlatform(Integer platformId, String channelDeviceId); }