Browse Source

解决设备信息导入子设备报错问题

zhongwei
tanghaihao 1 year ago
parent
commit
6038b286fa
  1. 2
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java

2
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java

@ -511,7 +511,7 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit
throw new ServiceException("设备负责部门未绑定站点"); throw new ServiceException("设备负责部门未绑定站点");
} }
EmTreeEntity emTree = emTreeService.getById(emInfo.getTreeId()); EmTreeEntity emTree = emTreeService.getById(emInfo.getTreeId());
EmDefinitionEntity emDefinition = emDefinitionService.getById(deviceTreeDTO.getDefinitionId()); EmDefinitionEntity emDefinition = emDefinitionService.getById(emTree.getDefinitionId());
copyDeviceTree(station, deviceTreeDTO.getInfoId(), emTree.getDefinitionId(), emDefinition.getModelSignage(), deviceTreeDTO.getTreeIds()); copyDeviceTree(station, deviceTreeDTO.getInfoId(), emTree.getDefinitionId(), emDefinition.getModelSignage(), deviceTreeDTO.getTreeIds());
return true; return true;
} }

Loading…
Cancel
Save