| | |
| | | createFilefolderIFNotExist(path); |
| | | fileLeft.transferTo(new File(path)); |
| | | bomAcceptance.setDevPicleft("doc_file" + File.separator + devDirSuffix+originalFilename); |
| | | }else{ |
| | | bomAcceptance.setDevPicleft(""); |
| | | } |
| | | //右视图 |
| | | if(fileRight!=null){ |
| | |
| | | createFilefolderIFNotExist(path); |
| | | fileRight.transferTo(new File(path)); |
| | | bomAcceptance.setDevPicright("doc_file" + File.separator + devDirSuffix+originalFilename); |
| | | }else{ |
| | | bomAcceptance.setDevPicright(""); |
| | | } |
| | | //正面图 |
| | | if(fileFront!=null){ |
| | |
| | | createFilefolderIFNotExist(path); |
| | | fileFront.transferTo(new File(path)); |
| | | bomAcceptance.setDevPicfront("doc_file" + File.separator + devDirSuffix+originalFilename); |
| | | }else{ |
| | | bomAcceptance.setDevPicfront(""); |
| | | } |
| | | //后面图 |
| | | if(fileBack!=null){ |
| | |
| | | createFilefolderIFNotExist(path); |
| | | fileBack.transferTo(new File(path)); |
| | | bomAcceptance.setDevPicback("doc_file" + File.separator + devDirSuffix+originalFilename); |
| | | }else{ |
| | | bomAcceptance.setDevPicback(""); |
| | | } |
| | | String agreeDirSuffix = "acceptance_bom" + File.separator + time + File.separator+ "agree" + File.separator; |
| | | String agreeDir = rootFile + agreeDirSuffix; |
| | |
| | | createFilefolderIFNotExist(path); |
| | | agreement.transferTo(new File(path)); |
| | | bomAcceptance.setBomAgreement("doc_file" + File.separator + agreeDirSuffix+originalFilename); |
| | | }else{ |
| | | bomAcceptance.setBomAgreement(""); |
| | | } |
| | | UpdateWrapper wrapper=new UpdateWrapper(); |
| | | wrapper.eq("num",bomAcceptance.getNum()); |