|  |  | 
 |  |  | import org.slf4j.LoggerFactory; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.util.ObjectUtils; | 
 |  |  |  | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.HashMap; | 
 |  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public void updateChannelStreamIdentification(DeviceChannel channel) { | 
 |  |  |         assert !ObjectUtils.isEmpty(channel.getDeviceId()); | 
 |  |  |         assert !ObjectUtils.isEmpty(channel.getStreamIdentification()); | 
 |  |  |         if (ObjectUtils.isEmpty(channel.getStreamIdentification())) { | 
 |  |  |             logger.info("[重置通道码流类型] 设备: {}, 码流: {}", channel.getDeviceId(), channel.getStreamIdentification()); | 
 |  |  |         }else { | 
 |  |  |             logger.info("[更新通道码流类型] 设备: {}, 通道:{}, 码流: {}", channel.getDeviceId(), channel.getChannelId(), | 
 |  |  |                     channel.getStreamIdentification()); | 
 |  |  |         } | 
 |  |  |         channelMapper.updateChannelStreamIdentification(channel); | 
 |  |  |     } | 
 |  |  | } |