yys
12 小时以前 5d8774383dae795cf750267404a9f7462c5e7a27
yys
已修改2个文件
6 ■■■■ 文件已修改
src/main/java/com/ruoyi/production/dto/BomImportDto.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/production/service/impl/ProductBomServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/production/dto/BomImportDto.java
@@ -15,7 +15,7 @@
    @Excel(name = "父项产品名称")
    private String parentName;
    @Excel(name = "父项产品规格")
    @Excel(name = "父项产品编号")
    private String parentSpec;
    @Excel(name = "子项产品编号")
src/main/java/com/ruoyi/production/service/impl/ProductBomServiceImpl.java
@@ -161,7 +161,7 @@
                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);
@@ -217,7 +217,7 @@
            //  创建 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);