| | |
| | | import com.whyc.dto.FileDirPath; |
| | | import com.whyc.dto.MailDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.*; |
| | | import com.whyc.mapper.BOMFeedbakMapper; |
| | | import com.whyc.mapper.DocUserMapper; |
| | | import com.whyc.mapper.ProductHistoryMapper; |
| | |
| | | if(list!=null&&list.size()>0){ |
| | | for (int i=0;i<list.size();i++) { |
| | | BOMFeedback feedback=list.get(i); |
| | | fileDirName=fileDirName+File.separator+feedback.getFile(); |
| | | File start = new File(fileDirName); |
| | | String attachFilePath=fileDirName+File.separator+feedback.getFile(); |
| | | File start = new File(attachFilePath); |
| | | String[] files =new String[]{}; |
| | | List attachList=new ArrayList(); |
| | | if(start.exists()) { |
| | |
| | | if(list!=null&&list.size()>0){ |
| | | for (int i=0;i<list.size();i++) { |
| | | BOMFeedback feedback=list.get(i); |
| | | fileDirName=fileDirName+File.separator+feedback.getFile(); |
| | | File start = new File(fileDirName); |
| | | String attachFilePath=fileDirName+File.separator+feedback.getFile(); |
| | | File start = new File(attachFilePath); |
| | | String[] files =new String[]{}; |
| | | List attachList=new ArrayList(); |
| | | if(start.exists()) { |
| | |
| | | //String feedbackZipPath = "feedback_bom" + File.separator + username + "_" + time+".zip"; |
| | | //List<File> fileList = new LinkedList<>(); |
| | | String rootFile = CommonUtil.getRootFile(); |
| | | String feedbackDirSuffix = "feedback_bom" + File.separator + username + File.separator + time + File.separator; |
| | | String feedbackDir = rootFile + feedbackDirSuffix; |
| | | File fileDir = new File(feedbackDir); |
| | | if (!fileDir.exists()) { |
| | | fileDir.mkdirs(); |
| | | } |
| | | if(multipartFileList!=null && multipartFileList.size()!=0){ |
| | | String feedbackDirSuffix = "feedback_bom" + File.separator + username + File.separator + time + File.separator; |
| | | String feedbackDir = rootFile + feedbackDirSuffix; |
| | | File fileDir = new File(feedbackDir); |
| | | if (!fileDir.exists()) { |
| | | fileDir.mkdirs(); |
| | | } |
| | | for (int i = 0; i < multipartFileList.size(); i++) { |
| | | MultipartFile multipartFile = multipartFileList.get(i); |
| | | //存储文件 |
| | |
| | | if(list!=null&&list.size()>0){ |
| | | for (int i=0;i<list.size();i++) { |
| | | BOMFeedback fb=list.get(i); |
| | | fileDirName=fileDirName+File.separator+fb.getFile(); |
| | | File start = new File(fileDirName); |
| | | String attachFilePath=fileDirName+File.separator+fb.getFile(); |
| | | File start = new File(attachFilePath); |
| | | String[] files =new String[]{}; |
| | | List attachList=new ArrayList(); |
| | | if(start.exists()) { |