From 06c312e584b99df613728d5ea8b32df4e156f3cc Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期一, 07 九月 2026 17:40:09 +0800
Subject: [PATCH] feat(mes): 采购退货关联采购订单后自动带入物料并锁定选料
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/indicatorresult/MesQcIndicatorResultServiceImpl.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/indicatorresult/MesQcIndicatorResultServiceImpl.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/indicatorresult/MesQcIndicatorResultServiceImpl.java
index 860ac64..1163b31 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/indicatorresult/MesQcIndicatorResultServiceImpl.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/indicatorresult/MesQcIndicatorResultServiceImpl.java
@@ -137,6 +137,34 @@
return resultMapper.selectCountByQcIdAndType(qcId, qcType);
}
+ /**
+ * 鑾峰彇鎸囧畾璐ㄦ鍗曚笅鐨勬楠岀粨鏋滃垪琛�
+ *
+ * @param qcId 璐ㄦ鍗� ID
+ * @param qcType 璐ㄦ绫诲瀷
+ * @return 缁撴灉鍒楄〃
+ */
+ @Override
+ public List<MesQcIndicatorResultDO> getIndicatorResultListByQcIdAndType(Long qcId, Integer qcType) {
+ return resultMapper.selectListByQcIdAndType(qcId, qcType);
+ }
+
+ @Override
+ public List<MesQcIndicatorResultDO> getIndicatorResultListByQcIdsAndType(List<Long> qcIds, Integer qcType) {
+ if (CollUtil.isEmpty(qcIds)) {
+ return Collections.emptyList();
+ }
+ return resultMapper.selectListByQcIdsAndType(qcIds, qcType);
+ }
+
+ @Override
+ public List<MesQcIndicatorResultDetailDO> getIndicatorResultDetailListByResultIds(List<Long> resultIds) {
+ if (CollUtil.isEmpty(resultIds)) {
+ return Collections.emptyList();
+ }
+ return resultDetailService.getDetailListByResultIds(resultIds);
+ }
+
@Override
public void validateIndicatorResultExistsByQcIdAndType(Long qcId, Integer qcType) {
Long resultCount = getIndicatorResultCountByQcIdAndType(qcId, qcType);
--
Gitblit v1.9.3