20250402 更新

1.修改常规毒品获取离子丰度比相对偏差的允许范围
This commit is contained in:
2025-04-02 17:30:24 +08:00
parent 11cd3e23cd
commit 907dfe35b9

View File

@@ -279,9 +279,19 @@ public class TestRecordSampledataExpandServiceImpl extends ServiceImpl<TestRecor
.multiply(BigDecimal.valueOf(100));
sampleDataExpand.setIonAbundanceRatioError(ionAbundanceRatioError);
if (isNPSCase) {
sampleDataExpand.setIonAbundanceRatioWithinError(processInspectDataService.getWithinErrorText(ionAbundanceRatioError, processInspectDataService.getErrorRange(sampleDataExpand.getIonAbundanceRatio())));
sampleDataExpand.setIonAbundanceRatioWithinError(
processInspectDataService.getWithinErrorText(
ionAbundanceRatioError,
processInspectDataService.getErrorRange(stdDataExpand.getIonAbundanceRatio())
)
);
} else {
sampleDataExpand.setIonAbundanceRatioWithinError(processInspectDataService.calculateHairCaseIonAbundanceRatioWithinError(ionAbundanceRatioError.doubleValue(), stdDataExpand.getIonAbundanceRatio().doubleValue()));
sampleDataExpand.setIonAbundanceRatioWithinError(
processInspectDataService.calculateHairCaseIonAbundanceRatioWithinError(
ionAbundanceRatioError.doubleValue(),
stdDataExpand.getIonAbundanceRatio().doubleValue()
)
);
}
} else {
log.warn("没有找到匹配的标准物质检验数据!");