whycxzp
2022-08-16 7706ed107881a62f7fd1b6471d759bbe095cde1d
产品软件审批
3个文件已修改
7 ■■■■ 已修改文件
src/main/java/com/whyc/config/EnumWorksheetType.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/WorksheetLinkService.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/WorksheetMainService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/config/EnumWorksheetType.java
@@ -3,7 +3,8 @@
public enum EnumWorksheetType {
    ProductBom(1,"产品Bom"),
    Component(2,"散装件"),
    ComponentProduct(3,"散装件-产品");
    ComponentProduct(3,"散装件-产品"),
    ProductSoftware(4,"产品软件");
    EnumWorksheetType(Integer type, String typeName) {
        this.type = type;
src/main/java/com/whyc/service/WorksheetLinkService.java
@@ -429,6 +429,9 @@
                List<ProductBomHistory> newBomList = historyService.getListByParentModel(cpAList.get(0).getParentModel(), nextVersion);
                bomService.updateNewBom(newBomList);
            }
            else if(type.intValue() == EnumWorksheetType.ProductSoftware.getType()){
                //转移记录
            }
        }
    }
src/main/java/com/whyc/service/WorksheetMainService.java
@@ -429,6 +429,7 @@
        }
        file.transferTo(zipFile);
        approving.setSoftwareUrl("doc_file"+productSoftwarePath+File.separator+ originalFilename);
        approving.setSoftwareName(originalFilename);
        approving.setCreateTime(new Date());
        approving.setMainId(main.getId());
        //产品软件提交