样品生成,子样方法配置错误提示

This commit is contained in:
2025-12-24 13:55:21 +08:00
parent d9f7330f57
commit b0d45e5cde
3 changed files with 6 additions and 0 deletions

View File

@@ -432,6 +432,10 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
//查询子样对应的分析方法
ConfigSubSampleMethodExtendRespVO configSubSampleMethodDO = configSubSampleMethodList.stream().filter(f -> f.getIsDefaultUse().equals(QmsCommonConstant.YES) && f.getConfigAssayMethodId().equals(configAssayMethodId) && f.getConfigSubSampleId().equals(configSubSample.getId())).findFirst().orElse(null);
if (configSubSampleMethodDO == null) {
throw new ServiceException(1_032_100_000, "未找到子样对应的分析方法配置!");
}
//扩展配置信息
String configInfomation = configSubSampleMethodDO.getConfigInfomation();
if (StringUtils.isNotBlank(configInfomation)) {

View File

@@ -25,6 +25,7 @@
WHERE
tbatd.DELETED = 0
AND tcam.DELETED = 0
AND tbssag.DELETED = 0
AND tbatd.IS_ASN_TSKD = 0
AND tbatd.IS_RPOD = 0
AND tbssag.SMP_STS = '已收样'

View File

@@ -103,6 +103,7 @@
T_BSN_SB_PRN_SMP_ASMT tbspsa
WHERE
tbspsa.IS_RPOD = 0
AND tbspsa.DELETED = 0
AND tbspsa.CFG_ASY_MTHD_ID = #{reqVO.configAssayMethodId}
GROUP BY
tbspsa.BSN_SB_PRN_SMP_ID ,