feat:format
This commit is contained in:
parent
0ac87eb273
commit
17d73df309
|
@ -1264,31 +1264,31 @@ public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService {
|
||||||
if (CollectionUtils.isNotEmpty(xeDataList)){
|
if (CollectionUtils.isNotEmpty(xeDataList)){
|
||||||
List<GardsXeResultsSpectrum> xe131mDataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_131m.getType())).collect(Collectors.toList());
|
List<GardsXeResultsSpectrum> xe131mDataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_131m.getType())).collect(Collectors.toList());
|
||||||
GardsXeResultsSpectrum xe131m = xe131mDataList.get(0);
|
GardsXeResultsSpectrum xe131m = xe131mDataList.get(0);
|
||||||
rlrDataValues.setXe131m_conc(String.valueOf(xe131m.getConc()));
|
rlrDataValues.setXe131m_conc(NumUtil.keepStr(xe131m.getConc(), 5));
|
||||||
rlrDataValues.setXe131m_uncert_conc(String.valueOf(xe131m.getConcErr()));
|
rlrDataValues.setXe131m_uncert_conc(NumUtil.keepStr(xe131m.getConcErr(), 5));
|
||||||
rlrDataValues.setXe131m_MDC(String.valueOf(xe131m.getMdc()));
|
rlrDataValues.setXe131m_MDC(NumUtil.keepStr(xe131m.getMdc(), 5));
|
||||||
rlrDataValues.setXe131m_LC(String.valueOf(xe131m.getLc()));
|
rlrDataValues.setXe131m_LC(NumUtil.keepStr(xe131m.getLc(), 5));
|
||||||
|
|
||||||
List<GardsXeResultsSpectrum> xe133DataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_133.getType())).collect(Collectors.toList());
|
List<GardsXeResultsSpectrum> xe133DataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_133.getType())).collect(Collectors.toList());
|
||||||
GardsXeResultsSpectrum xe133 = xe133DataList.get(0);
|
GardsXeResultsSpectrum xe133 = xe133DataList.get(0);
|
||||||
rlrDataValues.setXe133_conc(String.valueOf(xe133.getConc()));
|
rlrDataValues.setXe133_conc(NumUtil.keepStr(xe133.getConc(), 5));
|
||||||
rlrDataValues.setXe133_uncert_conc(String.valueOf(xe133.getConcErr()));
|
rlrDataValues.setXe133_uncert_conc(NumUtil.keepStr(xe133.getConcErr(), 5));
|
||||||
rlrDataValues.setXe133_MDC(String.valueOf(xe133.getMdc()));
|
rlrDataValues.setXe133_MDC(NumUtil.keepStr(xe133.getMdc(), 5));
|
||||||
rlrDataValues.setXe133_LC(String.valueOf(xe133.getLc()));
|
rlrDataValues.setXe133_LC(NumUtil.keepStr(xe133.getLc(), 5));
|
||||||
|
|
||||||
List<GardsXeResultsSpectrum> xe133mDataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_133m.getType())).collect(Collectors.toList());
|
List<GardsXeResultsSpectrum> xe133mDataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_133m.getType())).collect(Collectors.toList());
|
||||||
GardsXeResultsSpectrum xe133m = xe133mDataList.get(0);
|
GardsXeResultsSpectrum xe133m = xe133mDataList.get(0);
|
||||||
rlrDataValues.setXe133m_conc(String.valueOf(xe133m.getConc()));
|
rlrDataValues.setXe133m_conc(NumUtil.keepStr(xe133m.getConc(), 5));
|
||||||
rlrDataValues.setXe133m_uncert_conc(String.valueOf(xe133m.getConcErr()));
|
rlrDataValues.setXe133m_uncert_conc(NumUtil.keepStr(xe133m.getConcErr(), 5));
|
||||||
rlrDataValues.setXe133m_MDC(String.valueOf(xe133m.getMdc()));
|
rlrDataValues.setXe133m_MDC(NumUtil.keepStr(xe133m.getMdc(), 5));
|
||||||
rlrDataValues.setXe133m_LC(String.valueOf(xe133m.getLc()));
|
rlrDataValues.setXe133m_LC(NumUtil.keepStr(xe133m.getLc(), 5));
|
||||||
|
|
||||||
List<GardsXeResultsSpectrum> xe135DataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_135.getType())).collect(Collectors.toList());
|
List<GardsXeResultsSpectrum> xe135DataList = xeDataList.stream().filter(item -> item.getNuclideName().equals(XeNuclideName.XE_135.getType())).collect(Collectors.toList());
|
||||||
GardsXeResultsSpectrum xe135 = xe135DataList.get(0);
|
GardsXeResultsSpectrum xe135 = xe135DataList.get(0);
|
||||||
rlrDataValues.setXe135_conc(String.valueOf(xe135.getConc()));
|
rlrDataValues.setXe135_conc(NumUtil.keepStr(xe135.getConc(), 5));
|
||||||
rlrDataValues.setXe135_uncert_conc(String.valueOf(xe135.getConcErr()));
|
rlrDataValues.setXe135_uncert_conc(NumUtil.keepStr(xe135.getConcErr(), 5));
|
||||||
rlrDataValues.setXe135_MDC(String.valueOf(xe135.getMdc()));
|
rlrDataValues.setXe135_MDC(NumUtil.keepStr(xe135.getMdc(), 5));
|
||||||
rlrDataValues.setXe135_LC(String.valueOf(xe135.getLc()));
|
rlrDataValues.setXe135_LC(NumUtil.keepStr(xe135.getLc(), 5));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user