去除调试日志

This commit is contained in:
lin
2025-06-03 17:17:04 +08:00
parent e3f880627e
commit 227239f7f7
2 changed files with 0 additions and 5 deletions

View File

@@ -87,7 +87,6 @@ public class EventPublisher {
}else {
channels = deviceChannels;
}
System.out.println(5);
outEvent.setChannels(channels);
outEvent.setType(type);
if (platform != null) {

View File

@@ -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);
});
}