whyclxw
2 天以前 cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7
src/main/java/com/whyc/service/DefectiveProductsService.java
@@ -1,6 +1,5 @@
package com.whyc.service;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.github.pagehelper.PageHelper;
@@ -24,7 +23,6 @@
import javax.annotation.Resource;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
@@ -117,8 +115,8 @@
        }
        String subject = "【不良品记录】-"+senderName;
        String content = defective.getSenderName()+"上传了厂商:"+defective.getProvideName()+",产品:"+defective.getProductName()+",型号:"+defective.getType()+"的不良品记录;\n"+
                "不良品数量为:"+defective.getBadProduct()+",具体不良信息为:"+defective.getContent();
        String content = senderName+"上传了不良品记录,信息如下:\n厂商:"+defective.getProvideName()+"\n产品:"+defective.getProductName()+"\n型号:"+defective.getType()
                +"\n不良品数量:"+defective.getBadProduct()+"\n具体不良信息:"+defective.getContent();
        MailDTO mailDTO = new MailDTO();
        mailDTO.setTitle(subject);
@@ -219,8 +217,8 @@
        }
        String subject = "【不良品处理记录】-"+senderName;
        String content = defectiveHis.getDelName()+"修复了厂商:"+defective.getProvideName()+",产品:"+defective.getProductName()+",型号:"+defective.getType()+"的不良品记录;\n"+
                "不良品数量为:"+defective.getBadProduct()+"修复不良品个数:"+defectiveHis.getDelProduct()+",剩余不良品个数:"+defectiveHis.getRestProduct()+"\n"
        String content = defectiveHis.getDelName()+"修复了不良品,记录信息如下:\n厂商:"+defective.getProvideName()+"\n产品:"+defective.getProductName()+"\n型号:"+defective.getType()+
                "\n不良品数量:"+defective.getBadProduct()+"\n修复不良品个数:"+defectiveHis.getDelProduct()+"\n剩余不良品个数:"+defectiveHis.getRestProduct()+"\n"
                +"修复方式:"+defectiveHis.getNote();
        MailDTO mailDTO = new MailDTO();