| | |
| | | Integer senderId =ActionUtil.getUser().getId().intValue(); |
| | | defective.setSenderId(senderId); |
| | | defective.setSenderName(senderName); |
| | | Date date=new Date(); |
| | | defective.setRecordTime(date); |
| | | if(defective.getStartTime()==null){ |
| | | //保存 |
| | | defective.setStartTime(new Date()); |
| | | defective.setStartTime(date); |
| | | } |
| | | String time = ActionUtil.sdfwithday.format(defective.getStartTime()); |
| | | //String feedbackZipPath = "defective" + File.separator + username + "_" + time+".zip"; |
| | | String recordtime = ActionUtil.sdfwithFTP.format(defective.getRecordTime()); |
| | | String rootFile = CommonUtil.getRootFile(); |
| | | if(multipartFileList!=null && multipartFileList.size()!=0){ |
| | | String defectiveDirSuffix = "defective" + File.separator + senderName + File.separator + time + File.separator; |
| | | String defectiveDirSuffix = "defective" + File.separator + senderName + File.separator+ recordtime + File.separator; |
| | | String feedbackDir = rootFile + defectiveDirSuffix; |
| | | File fileDir = new File(feedbackDir); |
| | | if (!fileDir.exists()) { |