| | |
| | | } |
| | | |
| | | } |
| | | //文件夹的拷贝移除productId对应的多送项 |
| | | //文件夹的拷贝移除productId对应的被锁定的 |
| | | public void copyDirWithOutProductId(String sourcePathDir, String newPathDir,int productId) { |
| | | File start = new File(sourcePathDir); |
| | | File end = new File(newPathDir); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | public void updateUrl(List<ProductBomApproving> fileBomApprovingList) { |
| | | mapper.updateUrl(fileBomApprovingList); |
| | |
| | | private ProductBom copyMaterialToBom(Material m) { |
| | | ProductBom bom=new ProductBom(); |
| | | bom.setType(m.getType()); |
| | | bom.setCategory(m.getCategory()); |
| | | //bom.setCategory(m.getCategory()); |
| | | bom.setSubCode(m.getSubCode()); |
| | | bom.setSubName(m.getSubName()); |
| | | bom.setSubModel(m.getSubModel()); |
| | | bom.setUnit(m.getUnit()); |
| | | //bom.setQuantity(m.getQuantity()); |
| | | bom.setProducer(m.getProducer()); |
| | | bom.setMaterial(m.getMaterial()); |
| | | bom.setThickness(m.getThickness()); |
| | | bom.setSurfaceDetail(m.getSurfaceDetail()); |
| | | bom.setNotes(m.getNotes()); |
| | | //bom.setProducer(m.getProducer()); |
| | | //bom.setMaterial(m.getMaterial()); |
| | | //bom.setThickness(m.getThickness()); |
| | | //bom.setSurfaceDetail(m.getSurfaceDetail()); |
| | | //bom.setNotes(m.getNotes()); |
| | | bom.setPictureUrl(m.getPictureUrl()); |
| | | bom.setDwgUrl(m.getDwgUrl()); |
| | | bom.setFileUrl(m.getFileUrl()); |
| | |
| | | return mapper.getEnabledBomListByParentCodeAndCustomCode(parentCode,customCode); |
| | | } |
| | | |
| | | public void updateMaterialField2Bom() { |
| | | List<ProductBom> bomList = mapper.selectListWithMaterialField(); |
| | | mapper.updateMaterialField2BomBatch(bomList); |
| | | } |
| | | } |