whyclxw
2025-03-06 eb33c60306f707ec7b30a048388e4de702ca2f15
src/main/java/com/whyc/service/DefectiveProductsHistoryService.java
@@ -26,12 +26,15 @@
    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);
    }
    //记录处理记录
@@ -67,7 +70,7 @@
                    e.printStackTrace();
                }
            }
            defectiveHis.setDelUrl("doc_file" + File.separator + defectiveDirSuffix);
            defectiveHis.setDelUrl(defectiveDirSuffix);
        }
        mapper.insert(defectiveHis);
    }