20250328 更新
1.处理生物样本丰度比和丰度比偏差在前台的显示
This commit is contained in:
@@ -99,22 +99,15 @@ public class TestRecordSampleDataVO {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public BigDecimal getIonAbundanceRatioError() {
|
public BigDecimal getIonAbundanceRatioError() {
|
||||||
return expandList.get(1).getIonAbundanceRatioError();
|
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioError() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 该getter方法因为生物样本的丰度比只有一个,为前端显示而添加
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public BigDecimal getIonAbundanceRatio() {
|
public BigDecimal getIonAbundanceRatio() {
|
||||||
return expandList.get(1).getIonAbundanceRatio();
|
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatio() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 离子丰度比偏差是否在误差范围内
|
|
||||||
*/
|
|
||||||
public String getIonAbundanceRatioWithinError() {
|
public String getIonAbundanceRatioWithinError() {
|
||||||
return expandList.get(1).getIonAbundanceRatioWithinError();
|
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioWithinError() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user