20250328 更新

1.处理生物样本丰度比和丰度比偏差在前台的显示
master
陈江保 4 days ago
parent 2178ab4486
commit 0acf8a1588
  1. 15
      dlp-drugtesting-biz/src/main/java/digital/laboratory/platform/inspection/vo/TestRecordSampleDataVO.java

@ -99,22 +99,15 @@ public class TestRecordSampleDataVO {
* @return
*/
public BigDecimal getIonAbundanceRatioError() {
return expandList.get(1).getIonAbundanceRatioError();
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioError() : null;
}
/**
* 该getter方法因为生物样本的丰度比只有一个为前端显示而添加
*
* @return
*/
public BigDecimal getIonAbundanceRatio() {
return expandList.get(1).getIonAbundanceRatio();
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatio() : null;
}
/**
* 离子丰度比偏差是否在误差范围内
*/
public String getIonAbundanceRatioWithinError() {
return expandList.get(1).getIonAbundanceRatioWithinError();
return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioWithinError() : null;
}
}

Loading…
Cancel
Save