From 8befe77e25b4a40e2c4dd6a8f5ee8547c23ab33b Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 21 May 2024 17:02:26 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E5=93=81=E8=B4=A8=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E5=93=81=E8=B4=A8=E5=8D=95=20=E6=96=B0=E5=A2=9E=E5=93=81?= =?UTF-8?q?=E8=B4=A8=E5=8D=95=E6=8A=A5=E5=91=8Adomian=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=93=81=E8=B4=A8=E5=8D=95=E6=8A=A5=E5=91=8AMapper=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=93=81=E8=B4=A8=E5=8D=95=E6=8A=A5=E5=91=8AMapper.xm?= =?UTF-8?q?l=20=E6=96=B0=E5=A2=9E=E5=93=81=E8=B4=A8=E5=8D=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8AService=20=E6=96=B0=E5=A2=9E=E5=93=81=E8=B4=A8?= =?UTF-8?q?=E5=8D=95=E6=8A=A5=E5=91=8AServiceImpl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quality/domain/QualityOrderReport.java | 271 +++++++++++++++++ .../mapper/QualityOrderReportMapper.java | 80 +++++ .../service/IQualityOrderReportService.java | 78 +++++ .../impl/QualityOrderReportServiceImpl.java | 184 ++++++++++++ .../quality/QualityOrderReportMapper.xml | 147 ++++++++++ .../qualityOrder/qualityOrderReport.html | 276 ++++++++++++++++++ 6 files changed, 1036 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityOrderReport.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/quality/mapper/QualityOrderReportMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderReportService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/quality/QualityOrderReportMapper.xml create mode 100644 ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityOrderReport.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityOrderReport.java new file mode 100644 index 00000000..7d8715b8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityOrderReport.java @@ -0,0 +1,271 @@ +package com.ruoyi.quality.domain; + +import java.util.Date; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.quality.domain.VO.QualityOrderUnqualifiedVO; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 品质管理品质单报告对象 quality_order_report + * + * @author 刘晓旭 + * @date 2024-05-20 + */ +public class QualityOrderReport extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 品质单报告Id */ + private Long qualityOrderReportId; + + /** 供应商Id */ + @Excel(name = "供应商Id") + private String supplierCode; + + /** 供应商名称 */ + @Excel(name = "供应商名称") + private String supplierName; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 生产订单数 */ + @Excel(name = "生产订单数") + private Integer makeTotal; + + /** 品质已合格数 */ + @Excel(name = "品质已合格数") + private Integer qualityHasqualifiedNum; + + /** ok允收数 */ + @Excel(name = "ok允收数") + private String okAcceptedNum; + + /** ok报告图片 */ + @Excel(name = "ok报告图片") + private String okReportUrl; + + /** 特采/让步数 */ + @Excel(name = "特采/让步数") + private Integer specialConcessionsNum; + + /** 特采报告图片 */ + @Excel(name = "特采报告图片") + private String specialReportUrl; + + /** 检验完成时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date checkoutCompletionTime; + + /** 不良分类 */ + @Excel(name = "不良分类") + private String processBadClassification; + + /** 不良等级 */ + @Excel(name = "不良等级") + private String processBadGrade; + + /** 不良数量 */ + @Excel(name = "不良数量") + private String processBadNum; + + /** 不合格报告url */ + @Excel(name = "不合格报告url") + private String unqualifiedReportUrl; + + /*不合格数集合*/ + List unqualifiedDataList; + + public void setQualityOrderReportId(Long qualityOrderReportId) + { + this.qualityOrderReportId = qualityOrderReportId; + } + + public Long getQualityOrderReportId() + { + return qualityOrderReportId; + } + public void setSupplierCode(String supplierCode) + { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() + { + return supplierCode; + } + public void setSupplierName(String supplierName) + { + this.supplierName = supplierName; + } + + public String getSupplierName() + { + return supplierName; + } + public void setMaterialNo(String materialNo) + { + this.materialNo = materialNo; + } + + public String getMaterialNo() + { + return materialNo; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setMakeTotal(Integer makeTotal) + { + this.makeTotal = makeTotal; + } + + public Integer getMakeTotal() + { + return makeTotal; + } + public void setQualityHasqualifiedNum(Integer qualityHasqualifiedNum) + { + this.qualityHasqualifiedNum = qualityHasqualifiedNum; + } + + public Integer getQualityHasqualifiedNum() + { + return qualityHasqualifiedNum; + } + public void setOkAcceptedNum(String okAcceptedNum) + { + this.okAcceptedNum = okAcceptedNum; + } + + public String getOkAcceptedNum() + { + return okAcceptedNum; + } + public void setOkReportUrl(String okReportUrl) + { + this.okReportUrl = okReportUrl; + } + + public String getOkReportUrl() + { + return okReportUrl; + } + public void setSpecialConcessionsNum(Integer specialConcessionsNum) + { + this.specialConcessionsNum = specialConcessionsNum; + } + + public Integer getSpecialConcessionsNum() + { + return specialConcessionsNum; + } + public void setSpecialReportUrl(String specialReportUrl) + { + this.specialReportUrl = specialReportUrl; + } + + public String getSpecialReportUrl() + { + return specialReportUrl; + } + public void setCheckoutCompletionTime(Date checkoutCompletionTime) + { + this.checkoutCompletionTime = checkoutCompletionTime; + } + + public Date getCheckoutCompletionTime() + { + return checkoutCompletionTime; + } + public void setProcessBadClassification(String processBadClassification) + { + this.processBadClassification = processBadClassification; + } + + public String getProcessBadClassification() + { + return processBadClassification; + } + public void setProcessBadGrade(String processBadGrade) + { + this.processBadGrade = processBadGrade; + } + + public String getProcessBadGrade() + { + return processBadGrade; + } + public void setProcessBadNum(String processBadNum) + { + this.processBadNum = processBadNum; + } + + public String getProcessBadNum() + { + return processBadNum; + } + public void setUnqualifiedReportUrl(String unqualifiedReportUrl) + { + this.unqualifiedReportUrl = unqualifiedReportUrl; + } + + public String getUnqualifiedReportUrl() + { + return unqualifiedReportUrl; + } + + + public List getUnqualifiedDataList() { + return unqualifiedDataList; + } + + public void setUnqualifiedDataList(List unqualifiedDataList) { + this.unqualifiedDataList = unqualifiedDataList; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("qualityOrderReportId", getQualityOrderReportId()) + .append("supplierCode", getSupplierCode()) + .append("supplierName", getSupplierName()) + .append("materialNo", getMaterialNo()) + .append("materialName", getMaterialName()) + .append("makeTotal", getMakeTotal()) + .append("qualityHasqualifiedNum", getQualityHasqualifiedNum()) + .append("okAcceptedNum", getOkAcceptedNum()) + .append("okReportUrl", getOkReportUrl()) + .append("specialConcessionsNum", getSpecialConcessionsNum()) + .append("specialReportUrl", getSpecialReportUrl()) + .append("checkoutCompletionTime", getCheckoutCompletionTime()) + .append("processBadClassification", getProcessBadClassification()) + .append("processBadGrade", getProcessBadGrade()) + .append("processBadNum", getProcessBadNum()) + .append("unqualifiedReportUrl", getUnqualifiedReportUrl()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("unqualifiedDataList",getUnqualifiedDataList()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/mapper/QualityOrderReportMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/mapper/QualityOrderReportMapper.java new file mode 100644 index 00000000..53e03cc4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/mapper/QualityOrderReportMapper.java @@ -0,0 +1,80 @@ +package com.ruoyi.quality.mapper; + +import java.util.List; +import com.ruoyi.quality.domain.QualityOrderReport; + +/** + * 品质管理品质单报告Mapper接口 + * + * @author 刘晓旭 + * @date 2024-05-20 + */ +public interface QualityOrderReportMapper +{ + /** + * 查询品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 品质管理品质单报告 + */ + public QualityOrderReport selectQualityOrderReportById(Long qualityOrderReportId); + + /** + * 查询品质管理品质单报告列表 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 品质管理品质单报告集合 + */ + public List selectQualityOrderReportList(QualityOrderReport qualityOrderReport); + + /** + * 新增品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + public int insertQualityOrderReport(QualityOrderReport qualityOrderReport); + + /** + * 修改品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + public int updateQualityOrderReport(QualityOrderReport qualityOrderReport); + + /** + * 删除品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + public int deleteQualityOrderReportById(Long qualityOrderReportId); + + /** + * 批量删除品质管理品质单报告 + * + * @param qualityOrderReportIds 需要删除的数据ID + * @return 结果 + */ + public int deleteQualityOrderReportByIds(String[] qualityOrderReportIds); + + /** + * 作废品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + public int cancelQualityOrderReportById(Long qualityOrderReportId); + + /** + * 恢复品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + public int restoreQualityOrderReportById(Long qualityOrderReportId); + + /*根据供应商ID和物料号查询品质报告*/ + QualityOrderReport selectQualityOrderReportByNoAndCode(QualityOrderReport qualityOrderReport); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderReportService.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderReportService.java new file mode 100644 index 00000000..5ccc5ae3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderReportService.java @@ -0,0 +1,78 @@ +package com.ruoyi.quality.service; + +import java.util.List; +import com.ruoyi.quality.domain.QualityOrderReport; + +/** + * 品质管理品质单报告Service接口 + * + * @author 刘晓旭 + * @date 2024-05-20 + */ +public interface IQualityOrderReportService +{ + /** + * 查询品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 品质管理品质单报告 + */ + public QualityOrderReport selectQualityOrderReportById(Long qualityOrderReportId); + + /** + * 查询品质管理品质单报告列表 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 品质管理品质单报告集合 + */ + public List selectQualityOrderReportList(QualityOrderReport qualityOrderReport); + + /** + * 新增品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + public int insertQualityOrderReport(QualityOrderReport qualityOrderReport); + + /** + * 修改品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + public int updateQualityOrderReport(QualityOrderReport qualityOrderReport); + + /** + * 批量删除品质管理品质单报告 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteQualityOrderReportByIds(String ids); + + /** + * 删除品质管理品质单报告信息 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + public int deleteQualityOrderReportById(Long qualityOrderReportId); + + /** + * 作废品质管理品质单报告 + * @param qualityOrderReportId 品质管理品质单报告ID + * @return + */ + int cancelQualityOrderReportById(Long qualityOrderReportId); + + /** + * 恢复品质管理品质单报告 + * @param qualityOrderReportId 品质管理品质单报告ID + * @return + */ + int restoreQualityOrderReportById(Long qualityOrderReportId); + + /*根据供应商ID和物料号查询品质报告*/ + QualityOrderReport selectQualityOrderReportByNoAndCode(String materialNo, String supplierCode); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java new file mode 100644 index 00000000..70ce443b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java @@ -0,0 +1,184 @@ +package com.ruoyi.quality.service.impl; + +import java.util.Date; +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.quality.domain.QualityOrderReportUnqualified; +import com.ruoyi.quality.domain.VO.QualityOrderUnqualifiedVO; +import com.ruoyi.quality.mapper.QualityOrderReportUnqualifiedMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.quality.mapper.QualityOrderReportMapper; +import com.ruoyi.quality.domain.QualityOrderReport; +import com.ruoyi.quality.service.IQualityOrderReportService; +import com.ruoyi.common.core.text.Convert; +import org.springframework.transaction.annotation.Transactional; + +/** + * 品质管理品质单报告Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-05-20 + */ +@Service +public class QualityOrderReportServiceImpl implements IQualityOrderReportService +{ + @Autowired + private QualityOrderReportMapper qualityOrderReportMapper; + + @Autowired + private QualityOrderReportUnqualifiedMapper unqualifiedMapper; + + /** + * 查询品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 品质管理品质单报告 + */ + @Override + public QualityOrderReport selectQualityOrderReportById(Long qualityOrderReportId) + { + return qualityOrderReportMapper.selectQualityOrderReportById(qualityOrderReportId); + } + + /** + * 查询品质管理品质单报告列表 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 品质管理品质单报告 + */ + @Override + public List selectQualityOrderReportList(QualityOrderReport qualityOrderReport) + { + return qualityOrderReportMapper.selectQualityOrderReportList(qualityOrderReport); + } + + /** + * 新增品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + @Override + public int insertQualityOrderReport(QualityOrderReport qualityOrderReport) + { + String loginName = ShiroUtils.getLoginName(); + qualityOrderReport.setCreateBy(loginName); + qualityOrderReport.setCreateTime(DateUtils.getNowDate()); + return qualityOrderReportMapper.insertQualityOrderReport(qualityOrderReport); + } + + /** + * 修改品质管理品质单报告 + * + * @param qualityOrderReport 品质管理品质单报告 + * @return 结果 + */ + @Transactional + @Override + public int updateQualityOrderReport(QualityOrderReport qualityOrderReport) + { + String loginName = ShiroUtils.getLoginName(); + + QualityOrderReportUnqualified tempOrderReportUnqualified = new QualityOrderReportUnqualified(); + String materialNo = qualityOrderReport.getMaterialNo(); + String supplierCode = qualityOrderReport.getSupplierCode(); + tempOrderReportUnqualified.setMaterialNo(materialNo); + tempOrderReportUnqualified.setSupplierCode(supplierCode); + List unqualifiedDataList = qualityOrderReport.getUnqualifiedDataList(); + + + List qualityOrderReportUnqualifieds = unqualifiedMapper.selectQualityOrderReportUnqualifiedByCodeAndNo(tempOrderReportUnqualified); + if (StringUtils.isEmpty(qualityOrderReportUnqualifieds)){ + //如果后端不合格数列表值为空,就新增一个 + for (QualityOrderReportUnqualified tempQualityOrderReportUnqualified : unqualifiedDataList) { + QualityOrderReportUnqualified qualityOrderReportUnqualified = getQualityOrderReportUnqualified(loginName, materialNo, supplierCode, tempQualityOrderReportUnqualified); + unqualifiedMapper.insertQualityOrderReportUnqualified(qualityOrderReportUnqualified); + } + }else { + //如果后端不合格数列表值为不空,就更新 + for (QualityOrderReportUnqualified tempQualityOrderReportUnqualified : unqualifiedDataList) { + QualityOrderReportUnqualified qualityOrderReportUnqualified = getQualityOrderReportUnqualified(loginName, materialNo, supplierCode, tempQualityOrderReportUnqualified); + unqualifiedMapper.updateQualityOrderReportUnqualified(qualityOrderReportUnqualified); + } + + } + + qualityOrderReport.setUpdateBy(loginName); + qualityOrderReport.setUpdateTime(DateUtils.getNowDate()); + return qualityOrderReportMapper.updateQualityOrderReport(qualityOrderReport); + } + + private static QualityOrderReportUnqualified getQualityOrderReportUnqualified(String loginName, String materialNo, String supplierCode, QualityOrderReportUnqualified tempQualityOrderReportUnqualified) { + QualityOrderReportUnqualified qualityOrderReportUnqualified = new QualityOrderReportUnqualified(); + qualityOrderReportUnqualified.setSupplierCode(supplierCode); + qualityOrderReportUnqualified.setMaterialNo(materialNo); + qualityOrderReportUnqualified.setProcessBadNum(tempQualityOrderReportUnqualified.getProcessBadNum()); + qualityOrderReportUnqualified.setProcessBadClassification(tempQualityOrderReportUnqualified.getProcessBadClassification()); + qualityOrderReportUnqualified.setProcessBadGrade(tempQualityOrderReportUnqualified.getProcessBadGrade()); + qualityOrderReportUnqualified.setUpdateBy(loginName); + qualityOrderReportUnqualified.setUpdateTime(new Date()); + return qualityOrderReportUnqualified; + } + + /** + * 删除品质管理品质单报告对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteQualityOrderReportByIds(String ids) + { + return qualityOrderReportMapper.deleteQualityOrderReportByIds(Convert.toStrArray(ids)); + } + + /** + * 删除品质管理品质单报告信息 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + @Override + public int deleteQualityOrderReportById(Long qualityOrderReportId) + { + return qualityOrderReportMapper.deleteQualityOrderReportById(qualityOrderReportId); + } + + /** + * 作废品质管理品质单报告 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + @Override + public int cancelQualityOrderReportById(Long qualityOrderReportId) + { + return qualityOrderReportMapper.cancelQualityOrderReportById(qualityOrderReportId); + } + + /** + * 恢复品质管理品质单报告信息 + * + * @param qualityOrderReportId 品质管理品质单报告ID + * @return 结果 + */ + @Override + public int restoreQualityOrderReportById(Long qualityOrderReportId) + { + return qualityOrderReportMapper.restoreQualityOrderReportById(qualityOrderReportId); + } + + /*根据供应商ID和物料号查询品质报告*/ + @Override + public QualityOrderReport selectQualityOrderReportByNoAndCode(String materialNo, String supplierCode) { + + QualityOrderReport tempQualityOrderReport = new QualityOrderReport(); + tempQualityOrderReport.setMaterialNo(materialNo); + tempQualityOrderReport.setSupplierCode(supplierCode); + QualityOrderReport qualityOrderReport = qualityOrderReportMapper.selectQualityOrderReportByNoAndCode(tempQualityOrderReport); + return qualityOrderReport; + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/quality/QualityOrderReportMapper.xml b/ruoyi-admin/src/main/resources/mapper/quality/QualityOrderReportMapper.xml new file mode 100644 index 00000000..59adaa89 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/quality/QualityOrderReportMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select quality_order_report_id, supplier_code, supplier_name, material_no, material_name, make_total, quality_hasqualified_num, ok_accepted_num, ok_report_url, special_concessions_num, special_report_url, checkout_completion_time, process_bad_classification, process_bad_grade, process_bad_num, unqualified_report_url, remark, create_by, create_time, update_by, update_time from quality_order_report + + + + + + + + + + insert into quality_order_report + + supplier_code, + supplier_name, + material_no, + material_name, + make_total, + quality_hasqualified_num, + ok_accepted_num, + ok_report_url, + special_concessions_num, + special_report_url, + checkout_completion_time, + process_bad_classification, + process_bad_grade, + process_bad_num, + unqualified_report_url, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{supplierCode}, + #{supplierName}, + #{materialNo}, + #{materialName}, + #{makeTotal}, + #{qualityHasqualifiedNum}, + #{okAcceptedNum}, + #{okReportUrl}, + #{specialConcessionsNum}, + #{specialReportUrl}, + #{checkoutCompletionTime}, + #{processBadClassification}, + #{processBadGrade}, + #{processBadNum}, + #{unqualifiedReportUrl}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update quality_order_report + + supplier_code = #{supplierCode}, + supplier_name = #{supplierName}, + material_no = #{materialNo}, + material_name = #{materialName}, + make_total = #{makeTotal}, + quality_hasqualified_num = #{qualityHasqualifiedNum}, + ok_accepted_num = #{okAcceptedNum}, + ok_report_url = #{okReportUrl}, + special_concessions_num = #{specialConcessionsNum}, + special_report_url = #{specialReportUrl}, + checkout_completion_time = #{checkoutCompletionTime}, + process_bad_classification = #{processBadClassification}, + process_bad_grade = #{processBadGrade}, + process_bad_num = #{processBadNum}, + unqualified_report_url = #{unqualifiedReportUrl}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where material_no = #{materialNo} + and supplier_code = #{supplierCode} + + + + delete from quality_order_report where quality_order_report_id = #{qualityOrderReportId} + + + + delete from quality_order_report where quality_order_report_id in + + #{qualityOrderReportId} + + + + + update quality_order_report set del_flag = '1' where quality_order_report_id = #{qualityOrderReportId} + + + + update quality_order_report set del_flag = '0' where quality_order_report_id = #{qualityOrderReportId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html new file mode 100644 index 00000000..1e860cec --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html @@ -0,0 +1,276 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+

合格数

+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ +
+
+
+ 不合格数 + + 添加 + +
+
+
+
+
+
+
+
+ +
+ + +
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file