|  |  | 
 |  |  | package com.genersoft.iot.vmp.service.impl; | 
 |  |  |  | 
 |  |  | import com.baomidou.dynamic.datasource.annotation.DS; | 
 |  |  | import com.genersoft.iot.vmp.gb28181.bean.*; | 
 |  |  | import com.genersoft.iot.vmp.gb28181.event.EventPublisher; | 
 |  |  | import com.genersoft.iot.vmp.gb28181.event.subscribe.catalog.CatalogEvent; | 
 |  |  | 
 |  |  |  * @author lin | 
 |  |  |  */ | 
 |  |  | @Service | 
 |  |  | @DS("master") | 
 |  |  | public class PlatformChannelServiceImpl implements IPlatformChannelService { | 
 |  |  |  | 
 |  |  |     private final static Logger logger = LoggerFactory.getLogger(PlatformChannelServiceImpl.class); | 
 |  |  | 
 |  |  |                     deviceChannelList.add(deviceChannel); | 
 |  |  |                 } | 
 |  |  |                 return deviceChannelList; | 
 |  |  |             } else if (catalog == null || !catalogId.equals(platform.getDeviceGBId())) { | 
 |  |  |             } else if (catalog == null && !catalogId.equals(platform.getDeviceGBId())) { | 
 |  |  |                 logger.warn("未查询到目录{}的信息", catalogId); | 
 |  |  |                 return null; | 
 |  |  |             } | 
 |  |  | 
 |  |  |             return 0; | 
 |  |  |         } | 
 |  |  |         if (ObjectUtils.isEmpty(catalogId)) { | 
 |  |  |             catalogId = null; | 
 |  |  |            catalogId = null; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         List<DeviceChannel> deviceChannels = platformChannelMapper.queryAllChannelInCatalog(platformId, catalogId); |