From a65c15b40ca5062db53bcbd45963913d3804c1be Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Thu, 18 Jun 2026 15:17:45 +0800 Subject: [PATCH] =?UTF-8?q?iqc=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../heai/modules/pms/service/Impl/QcServiceImpl.java | 10 +++++----- src/main/resources/mapper/pms/QcMapper.xml | 11 +++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/heai/modules/pms/service/Impl/QcServiceImpl.java b/src/main/java/com/heai/modules/pms/service/Impl/QcServiceImpl.java index f7e3dbf..847ef71 100644 --- a/src/main/java/com/heai/modules/pms/service/Impl/QcServiceImpl.java +++ b/src/main/java/com/heai/modules/pms/service/Impl/QcServiceImpl.java @@ -3997,20 +3997,20 @@ public class QcServiceImpl implements QcService { if (partInformationList.isEmpty()) { throw new RuntimeException("未查到该物料数据!"); } - if ("G".equals(partInformationList.get(0).getControlMes())) { + /*if ("G".equals(partInformationList.get(0).getControlMes())) { throw new RuntimeException("检验单物料的管控类型为不适用,不允许取消审核 {" + qcData.getInspectionNo() + "} !"); - } + }*/ // po_order_roll_no里如果有数据则不允许取消审核 - List rollNos = qcMapper.selectInfoByInspectionNo(qcData); + /*List rollNos = qcMapper.selectInfoByInspectionNo(qcData); if (!rollNos.isEmpty()) { throw new RuntimeException("该检验单已发行入库标签,不允许取消审核 {" + qcData.getInspectionNo() + "} !"); - } + }*/ // 状态改为待检验,并将提交标识改为N qcMapper.updateIQCMasterSubmitFlag2(qcData); qcMapper.updateIQCDetailSubmitFlag2(qcData); qcMapper.updateIQCSubDetailSubmitFlag2(qcData); // 删除相应task表的数据 - qcMapper.deleteReceivingTaskByInspectionNo(qcData); + //qcMapper.deleteReceivingTaskByInspectionNo(qcData); if (StringUtils.isNotBlank(qcData.getRefInfo1()) && StringUtils.isNotBlank(qcData.getRefInfo2())){ inspectService.inspectForQMS(qcData.getSite(), qcData.getRefInfo1(), Integer.parseInt(qcData.getRefInfo2()), "cancel", qcData.getInspectionResult(), qcData.getInspectionRemark(), currentUser.getUsername()); } diff --git a/src/main/resources/mapper/pms/QcMapper.xml b/src/main/resources/mapper/pms/QcMapper.xml index 2526a9e..9b3aa75 100644 --- a/src/main/resources/mapper/pms/QcMapper.xml +++ b/src/main/resources/mapper/pms/QcMapper.xml @@ -4496,12 +4496,11 @@