lxw
2022-08-30 91dd28ded841e620cce34bdd1caab8d7efc64cb4
历史版本查看信息
1个文件已修改
25 ■■■■ 已修改文件
src/main/java/com/whyc/service/ProductBomHistoryService.java 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/ProductBomHistoryService.java
@@ -108,19 +108,18 @@
      //将没有管理BOM的dwg文件拷贝下载
      fileDirName=fileDirName+File.separator+withOutDwg;
      File start = new File(fileDirName);
      if(!start.exists()) {
          start.mkdir();
      }
      String[] filePath = start.list();//获取该文件夹下的所有文件名字
      if(filePath.length>=0){
          for(String temp : filePath) {
              ProductBomHistory p=new ProductBomHistory();
              p.setId(-1);
              p.setProductId(productId);
              p.setParentCode(pHistory.getParentModel());
              p.setVersion(version);
              p.setDwgUrl(withOutDwg+File.separator+temp);
              list.add(p);
      if(start.exists()) {
          String[] filePath = start.list();//获取该文件夹下的所有文件名字
          if(filePath.length>=0){
              for(String temp : filePath) {
                  ProductBomHistory p=new ProductBomHistory();
                  p.setId(-1);
                  p.setProductId(productId);
                  p.setParentCode(pHistory.getParentModel());
                  p.setVersion(version);
                  p.setDwgUrl(withOutDwg+File.separator+temp);
                  list.add(p);
              }
          }
      }
      return new Response().setIII(1,list.size()>0?true:false,list,listsoft,"返回物料信息及关联物料");