|
|
|
@ -851,6 +851,7 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit
|
|
|
|
|
|
|
|
|
|
private void copyDeviceTree(StationEntity station, Long pid, Long definitionId, String modelSignage, List<EmTreeIdsDTO> treeIds) { |
|
|
|
|
List<ProjectDTO> projectDTOList = new ArrayList<>(); |
|
|
|
|
EmDefinitionEntity definition = emDefinitionService.getById(definitionId); |
|
|
|
|
LambdaQueryWrapper<EmTreeEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
|
wrapper.eq(EmTreeEntity::getDefinitionId, definitionId); |
|
|
|
|
List<EmTreeEntity> definitionEmTrees = emTreeService.list(wrapper); |
|
|
|
@ -865,6 +866,7 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit
|
|
|
|
|
emInfo.setId(infoId); |
|
|
|
|
emInfo.setGpid(pid); |
|
|
|
|
emInfo.setTreeId(emTree.getId()); |
|
|
|
|
emInfo.setSetCategory(definition.getType()); |
|
|
|
|
emInfo.setInsLocation(station.getAddress()); |
|
|
|
|
emInfo.setNumber(number); |
|
|
|
|
emInfo.setStationCode(station.getCode()); |
|
|
|
|