去除调试日志
This commit is contained in:
@@ -87,7 +87,6 @@ public class EventPublisher {
|
||||
}else {
|
||||
channels = deviceChannels;
|
||||
}
|
||||
System.out.println(5);
|
||||
outEvent.setChannels(channels);
|
||||
outEvent.setType(type);
|
||||
if (platform != null) {
|
||||
|
||||
@@ -570,17 +570,13 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||
for (DeviceChannel deviceChannel : deviceChannelList) {
|
||||
DeviceChannel channelInDb = allChannelMap.get(deviceChannel.getDataDeviceId() + deviceChannel.getDeviceId());
|
||||
if (channelInDb != null) {
|
||||
System.out.println(1);
|
||||
deviceChannel.setStreamId(channelInDb.getStreamId());
|
||||
deviceChannel.setHasAudio(channelInDb.isHasAudio());
|
||||
deviceChannel.setId(channelInDb.getId());
|
||||
if (channelInDb.getStatus() != null && !channelInDb.getStatus().equalsIgnoreCase(deviceChannel.getStatus())){
|
||||
System.out.println(2);
|
||||
List<Platform> platformList = platformChannelMapper.queryParentPlatformByChannelId(deviceChannel.getDeviceId());
|
||||
if (!CollectionUtils.isEmpty(platformList)){
|
||||
System.out.println(3);
|
||||
platformList.forEach(platform->{
|
||||
System.out.println(4);
|
||||
eventPublisher.catalogEventPublish(platform, deviceChannel.buildCommonGBChannelForStatus(), deviceChannel.getStatus().equals("ON")? CatalogEvent.ON:CatalogEvent.OFF);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user