liu
2026-09-04 c6eb0d852595f235b21520dab1d8600ed1b80776
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);