| | |
| | | continue; |
| | | } |
| | | // 获取子项模型信息 |
| | | ProductModel childModel = findModel(child.getChildName(), child.getChildSpec()); |
| | | ProductModel childModel = findModel(child.getChildName(), child.getChildCode()); |
| | | if(childModel.getId() == null){ |
| | | BomImportErrorDto errorDto = new BomImportErrorDto(); |
| | | BeanUtils.copyProperties(child, errorDto); |
| | |
| | | |
| | | // 创建 BOM 数据 |
| | | BomImportDto first = entry.getValue().get(0); |
| | | ProductModel rootModel = findModel(first.getParentName(), first.getParentSpec()); |
| | | ProductModel rootModel = findModel(first.getParentName(), first.getParentCode()); |
| | | if(rootModel.getId() == null){ |
| | | BomImportErrorDto error = new BomImportErrorDto(); |
| | | BeanUtils.copyProperties(first, error); |