| | |
| | | } |
| | | //产品bom对比 |
| | | Map<String,List> compareMap = pbhService.parseCompare(baseProduct,product); |
| | | return response.setIII(1, true, product,compareMap, filePath); |
| | | //return response.setIII(1, true, product,compareMap, filePath); |
| | | return response.setIII(1, true, product,compareMap, zipFile.toString()); |
| | | |
| | | } |
| | | |
| | |
| | | String customCode = product.getCustomCode(); |
| | | String parentModel = product.getParentModel(); |
| | | List<ProductBom> bomList = product.getBomList(); |
| | | String fileUrl = product.getFileUrl(); |
| | | String zipFilePath = product.getFileUrl(); |
| | | String fileUrl = zipFilePath.substring(0,zipFilePath.lastIndexOf(File.separator)); |
| | | Date date = new Date(); |
| | | boolean isCopyCustom = false; |
| | | Product relatedProduct = null; |
| | |
| | | if (!materialFile.exists()) { |
| | | materialFile.mkdirs(); |
| | | } |
| | | //之前上传的产品bom压缩包,转移到正式版本下留存 |
| | | File zipFileNew = new File(productDir + File.separator + zipFilePath.substring(zipFilePath.lastIndexOf(File.separator) + 1)); |
| | | FileCopyUtils.copy(new File(zipFilePath), zipFileNew); |
| | | |
| | | productUrlList.forEach(productUrl -> { |
| | | String fileName = productUrl.substring(productUrl.lastIndexOf(File.separator) + 1); |
| | | |