package com.genersoft.iot.vmp.gb28181.service; import com.genersoft.iot.vmp.gb28181.bean.*; import com.genersoft.iot.vmp.streamPush.bean.StreamPush; 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); CommonGBChannel getOne(int id); List getIndustryCodeList(); List getDeviceTypeList(); List getNetworkIdentificationTypeList(); void reset(int id); PageInfo queryListByCivilCode(int page, int count, String query, Boolean online, Integer channelType, String civilCode); PageInfo queryListByParentId(int page, int count, String query, Boolean online, Integer channelType, String groupDeviceId); 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); void updateCivilCode(String oldCivilCode, String newCivilCode); List queryListByStreamPushList(List streamPushList); void updateGpsByDeviceIdForStreamPush(List channels); PageInfo queryList(int page, int count, String query, Boolean online, Boolean hasRecordPlan, Integer channelType); }