|  | @@ -407,10 +407,6 @@ public class IotDeviceInfoServiceImpl extends ServiceImpl<IotDeviceInfoMapper, I
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      private void handleIncrementDevices(DvsBaseInfo baseInfo, IotServerInfo serverInfo) {
 |  |      private void handleIncrementDevices(DvsBaseInfo baseInfo, IotServerInfo serverInfo) {
 | 
											
												
													
														|  | -        //添加通道类设备集合
 |  | 
 | 
											
												
													
														|  | -        List<IotDeviceInfo> addChnnelList = new ArrayList<>();
 |  | 
 | 
											
												
													
														|  | -        //更新通道类设备集合
 |  | 
 | 
											
												
													
														|  | -        List<IotDeviceInfo> updateChnnelList = new ArrayList<>();
 |  | 
 | 
											
												
													
														|  |          baseMapper.updateDvsAndChannelDeleted(serverInfo.getIotCode(), baseInfo.getDeviceCode());
 |  |          baseMapper.updateDvsAndChannelDeleted(serverInfo.getIotCode(), baseInfo.getDeviceCode());
 | 
											
												
													
														|  |          String code = BaseDeviceTypeEnum.valueOf(baseInfo.getType()).getCode();
 |  |          String code = BaseDeviceTypeEnum.valueOf(baseInfo.getType()).getCode();
 | 
											
												
													
														|  |          IotDeviceInfo hostInfo = selectByTypeAndCode(serverInfo.getIotCode(), code, baseInfo.getProductName(), baseInfo.getDeviceCode());
 |  |          IotDeviceInfo hostInfo = selectByTypeAndCode(serverInfo.getIotCode(), code, baseInfo.getProductName(), baseInfo.getDeviceCode());
 | 
											
										
											
												
													
														|  | @@ -438,7 +434,8 @@ public class IotDeviceInfoServiceImpl extends ServiceImpl<IotDeviceInfoMapper, I
 | 
											
												
													
														|  |          if (ObjectUtil.isEmpty(subDeviceList)) {
 |  |          if (ObjectUtil.isEmpty(subDeviceList)) {
 | 
											
												
													
														|  |              return;
 |  |              return;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<IotDeviceInfo> addChnnelList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +        List<IotDeviceInfo> updateChnnelList = new ArrayList<>();
 | 
											
												
													
														|  |          //处理通道信息
 |  |          //处理通道信息
 | 
											
												
													
														|  |          for (SubDeviceInfo subDeviceInfo : subDeviceList) {
 |  |          for (SubDeviceInfo subDeviceInfo : subDeviceList) {
 | 
											
												
													
														|  |              IotDeviceInfo channelInfo = selectByTypeAndHostAndCode(serverInfo.getIotCode(), subDeviceInfo.getParentCode(), baseInfo.getProductName(), subDeviceInfo.getDeviceCode());
 |  |              IotDeviceInfo channelInfo = selectByTypeAndHostAndCode(serverInfo.getIotCode(), subDeviceInfo.getParentCode(), baseInfo.getProductName(), subDeviceInfo.getDeviceCode());
 |