| | |
| | | public void addHis(DefectiveProducts defective) { |
| | | DefectiveProductsHistory his=new DefectiveProductsHistory(); |
| | | his.setDeftId(defective.getId()); |
| | | his.setRecordTime(defective.getStartTime()); |
| | | his.setBadProduct(defective.getBadProduct()); |
| | | his.setRecordTime(defective.getRecordTime()); |
| | | his.setConfirmStatus(defective.getConfirmStatus()); |
| | | his.setNote(defective.getNote()); |
| | | his.setReceiverIds(defective.getReceiverIds()); |
| | | his.setReceiverNames(defective.getReceiverNames()); |
| | | his.setDelProduct(0); |
| | | his.setDelId(defective.getSenderId()); |
| | | his.setDelName(defective.getSenderName()); |
| | | his.setRestProduct(defective.getRestProduct()); |
| | | mapper.insert(his); |
| | | } |
| | | //记录处理记录 |
| | |
| | | Integer delId =ActionUtil.getUser().getId().intValue(); |
| | | defectiveHis.setDelId(delId); |
| | | defectiveHis.setDelName(delName); |
| | | String time = ActionUtil.sdfwithday.format(defective.getStartTime()); |
| | | String record = ActionUtil.sdfwithFTP.format(defective.getRecordTime()); |
| | | String rootFile = CommonUtil.getRootFile(); |
| | | if(multipartFileList!=null && multipartFileList.size()!=0){ |
| | | String defectiveDirSuffix = "defective" + File.separator + defective.getSenderName() + File.separator + time + File.separator+ record + File.separator |
| | | String defectiveDirSuffix = "defective" + File.separator + defective.getSenderName() + File.separator+ record + File.separator |
| | | +delName+File.separator+recordTime+File.separator; |
| | | String feedbackDir = rootFile + defectiveDirSuffix; |
| | | File fileDir = new File(feedbackDir); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | defectiveHis.setDelUrl("doc_file" + File.separator + defectiveDirSuffix); |
| | | defectiveHis.setDelUrl(defectiveDirSuffix); |
| | | } |
| | | mapper.insert(defectiveHis); |
| | | } |