|  |  | 
 |  |  |          logger.debug("[目录查询]收到的数据存在重复: {}" , stringBuilder); | 
 |  |  |       } | 
 |  |  |       try { | 
 |  |  |          int cleanChannelsResult = deviceChannelMapper.cleanChannelsByDeviceId(deviceId); | 
 |  |  | //         int cleanChannelsResult = deviceChannelMapper.cleanChannelsByDeviceId(deviceId); | 
 |  |  |          int cleanChannelsResult = deviceChannelMapper.cleanChannelsNotInList(deviceId, channels); | 
 |  |  |          int limitCount = 300; | 
 |  |  |          boolean result = cleanChannelsResult < 0; | 
 |  |  |          if (!result && channels.size() > 0) { | 
 |  |  | 
 |  |  |       try { | 
 |  |  |          if (streamProxyMapper.add(streamProxyItem) > 0) { | 
 |  |  |             if (!StringUtils.isEmpty(streamProxyItem.getGbId())) { | 
 |  |  |                if (gbStreamMapper.add(streamProxyItem) > 0) { | 
 |  |  |                if (gbStreamMapper.add(streamProxyItem) < 0) { | 
 |  |  |                   //事务回滚 | 
 |  |  |                   dataSourceTransactionManager.rollback(transactionStatus); | 
 |  |  |                   return false; |