| | |
| | | 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); |