| | |
| | | import com.genersoft.iot.vmp.gb28181.event.record.RecordEndEvent; |
| | | import com.genersoft.iot.vmp.gb28181.event.subscribe.catalog.CatalogEvent; |
| | | import com.genersoft.iot.vmp.gb28181.event.subscribe.mobilePosition.MobilePositionEvent; |
| | | import com.genersoft.iot.vmp.media.event.MediaServerOfflineEvent; |
| | | import com.genersoft.iot.vmp.media.event.MediaServerOnlineEvent; |
| | | import com.genersoft.iot.vmp.media.event.mediaServer.MediaServerOfflineEvent; |
| | | import com.genersoft.iot.vmp.media.event.mediaServer.MediaServerOnlineEvent; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationEventPublisher; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | // 数据去重 |
| | | Set<String> gbIdSet = new HashSet<>(); |
| | | for (DeviceChannel deviceChannel : deviceChannels) { |
| | | if (!gbIdSet.contains(deviceChannel.getChannelId())) { |
| | | if (deviceChannel != null && deviceChannel.getChannelId() != null && !gbIdSet.contains(deviceChannel.getChannelId())) { |
| | | gbIdSet.add(deviceChannel.getChannelId()); |
| | | channels.add(deviceChannel); |
| | | } |