20250402 更新

This commit is contained in:
2025-04-02 18:03:56 +08:00
parent b4ed4fc415
commit 77f852338b

View File

@@ -1,6 +1,7 @@
package digital.laboratory.platform.inspection.vo;
import com.baomidou.mybatisplus.annotation.TableName;
import digital.laboratory.platform.inspection.constant.TestRecordSampleDataConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -52,21 +53,21 @@ public class TestRecordSampleDataExpandVO {
public String getIonAbundanceRatio() {
if (getBasePeak()) {
return "/";
return TestRecordSampleDataConstant.INVALID_VALUE_STR;
}
return ionAbundanceRatio != null ? ionAbundanceRatio.setScale(2, RoundingMode.HALF_UP).toString() : null;
}
public String getIonAbundanceRatioError() {
if (getBasePeak()) {
return "/";
return TestRecordSampleDataConstant.INVALID_VALUE_STR;
}
return ionAbundanceRatioError != null ? ionAbundanceRatioError.setScale(2, RoundingMode.HALF_UP).toString() : null;
}
public String getIonAbundanceRatioWithinError() {
if (getBasePeak()) {
return "/";
return TestRecordSampleDataConstant.INVALID_VALUE_STR;
}
return ionAbundanceRatioWithinError;
}