old mode 100644
new mode 100755
 |  |  | 
 |  |  |  | 
 |  |  |         deviceChannel.setRegisterWay(1); | 
 |  |  |  | 
 |  |  |         PlatformCatalog catalog = catalogMapper.select(catalogId); | 
 |  |  |         PlatformCatalog catalog = catalogMapper.selectByPlatFormAndCatalogId(platform.getServerGBId(), catalogId); | 
 |  |  |         if (catalog != null) { | 
 |  |  |             deviceChannel.setCivilCode(catalog.getCivilCode()); | 
 |  |  |             deviceChannel.setParentId(catalog.getParentId()); | 
 |  |  | 
 |  |  |         deviceChannel.setStatus(status != null && status); | 
 |  |  |  | 
 |  |  |         deviceChannel.setRegisterWay(1); | 
 |  |  |         PlatformCatalog catalog = catalogMapper.select(catalogId); | 
 |  |  |         PlatformCatalog catalog = catalogMapper.selectByPlatFormAndCatalogId(platform.getServerGBId(), catalogId); | 
 |  |  |         if (catalog != null) { | 
 |  |  |             deviceChannel.setCivilCode(catalog.getCivilCode()); | 
 |  |  |             deviceChannel.setParentId(catalog.getParentId()); |