|
|
@ -613,6 +613,8 @@ public class QcServiceImpl implements QcService { |
|
|
qcMapper.deleteEquipmentDataAcquisition(qcData); |
|
|
qcMapper.deleteEquipmentDataAcquisition(qcData); |
|
|
// 删除文件 |
|
|
// 删除文件 |
|
|
qcMapper.deleteInspectionFiles(qcData); |
|
|
qcMapper.deleteInspectionFiles(qcData); |
|
|
|
|
|
// 修改入库通知单状态为'草稿' |
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "草稿", "N"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -687,10 +689,10 @@ public class QcServiceImpl implements QcService { |
|
|
// 判断检验结论是否合格 |
|
|
// 判断检验结论是否合格 |
|
|
if ("合格".equals(qcData.getInspectionResult()) || "让步接收".equals(qcData.getDisposalMeasures()) || "挑选使用".equals(qcData.getDisposalMeasures())) { |
|
|
if ("合格".equals(qcData.getInspectionResult()) || "让步接收".equals(qcData.getDisposalMeasures()) || "挑选使用".equals(qcData.getDisposalMeasures())) { |
|
|
// 状态改为待入库 |
|
|
// 状态改为待入库 |
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "待入库"); |
|
|
|
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "待入库", ""); |
|
|
} else { |
|
|
} else { |
|
|
// 状态改为'草稿' |
|
|
// 状态改为'草稿' |
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "草稿"); |
|
|
|
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "草稿", "N"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// // 发送邮件 |
|
|
// // 发送邮件 |
|
|
@ -1655,12 +1657,12 @@ public class QcServiceImpl implements QcService { |
|
|
// qcMapper.batchSaveHardtagTransDetail(hardtagTransDetailData); |
|
|
// qcMapper.batchSaveHardtagTransDetail(hardtagTransDetailData); |
|
|
|
|
|
|
|
|
// 更新"收货入库任务"的状态为"待入库" |
|
|
// 更新"收货入库任务"的状态为"待入库" |
|
|
qcMapper.updateInboundNotificationStatus(recordData.getSite(), recordData.getBuNo(), recordData.getDocumentNo(), "待入库"); |
|
|
|
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(recordData.getSite(), recordData.getBuNo(), recordData.getDocumentNo(), "待入库", ""); |
|
|
} |
|
|
} |
|
|
// 发送邮件 |
|
|
// 发送邮件 |
|
|
else if ("不合格".equals(recordData.getInspectionResult())) { |
|
|
else if ("不合格".equals(recordData.getInspectionResult())) { |
|
|
// 更新"收货入库任务"的状态为"已完成" |
|
|
// 更新"收货入库任务"的状态为"已完成" |
|
|
qcMapper.updateInboundNotificationStatus(recordData.getSite(), recordData.getBuNo(), recordData.getDocumentNo(), "已完成"); |
|
|
|
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(recordData.getSite(), recordData.getBuNo(), recordData.getDocumentNo(), "已完成", ""); |
|
|
// try { |
|
|
// try { |
|
|
// List<QcFAIRecordData> list = qcMapper.iqcDetailSearch(recordData); |
|
|
// List<QcFAIRecordData> list = qcMapper.iqcDetailSearch(recordData); |
|
|
// recordData.setItemList(list); |
|
|
// recordData.setItemList(list); |
|
|
@ -1697,7 +1699,7 @@ public class QcServiceImpl implements QcService { |
|
|
qcMapper.updateIQCDetailSubmitFlag2(qcData); |
|
|
qcMapper.updateIQCDetailSubmitFlag2(qcData); |
|
|
qcMapper.updateIQCSubDetailSubmitFlag2(qcData); |
|
|
qcMapper.updateIQCSubDetailSubmitFlag2(qcData); |
|
|
// 修改收货入库单为待检验 |
|
|
// 修改收货入库单为待检验 |
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "待检验"); |
|
|
|
|
|
|
|
|
qcMapper.updateInboundNotificationStatus(qcData.getSite(), qcData.getBuNo(), qcData.getDocumentNo(), "待检验", ""); |
|
|
// // 删除相应task表的数据 |
|
|
// // 删除相应task表的数据 |
|
|
// qcMapper.deleteReceivingTaskByInspectionNo(qcData); |
|
|
// qcMapper.deleteReceivingTaskByInspectionNo(qcData); |
|
|
} |
|
|
} |
|
|
|