| | |
| | | String dwgUrl=bom.getDwgUrl(); |
| | | if(i==0){ |
| | | excelName=bom.getParentCode()+"_"+bom.getParentModel(); |
| | | String timeStr= ActionUtil.sdfwithFTP.format(new Date()); |
| | | if(type.equals("pic")){ |
| | | excelName=timeStr; |
| | | } |
| | | rootFace=fileDirName+File.separator+excelName; |
| | | File destfile = new File(rootFace); |
| | | if(!destfile.exists()) { |
| | |
| | | } |
| | | } |
| | | FileOutputStream fileOut =null; |
| | | String timeStr= ActionUtil.sdfwithFTP.format(new Date()); |
| | | if(type.equals("pic")){ |
| | | excelName=timeStr; |
| | | } |
| | | try { |
| | | fileOut = new FileOutputStream(rootFace+File.separator+excelName+".xls"); |
| | | // 写入excel文件 |