beta查看RRR报告计算结果result不存在问题修改
This commit is contained in:
parent
1edb06857d
commit
67dba4c0bc
|
@ -1201,42 +1201,46 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
|||
strBuffer.append(System.lineSeparator());
|
||||
String netRoi = "%s%-51s%-51s%-13s";
|
||||
if (betaDataFile.isBProcessed()) {
|
||||
if (Objects.isNull(resultsSpectrums.get(0).getLcCts())) {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNetErr())), StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
if (Objects.isNull(resultsSpectrums.get(0).getLcCts())) {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNetErr())), StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", "LC"));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNetErr())), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getLcCts()))));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
} else {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", "LC"));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNetErr())), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getLcCts()))));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (Objects.isNull(resultsSpectrums.get(0).getLcCts())) {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(Math.sqrt(resultsSpectrum.getNetErr()))), StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
if (Objects.isNull(resultsSpectrums.get(0).getLcCts())) {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(Math.sqrt(resultsSpectrum.getNetErr()))), StringPool.SPACE));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", "LC"));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(Math.sqrt(resultsSpectrum.getNetErr()))), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getLcCts()))));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
} else {
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, "Roi", "Net count", "LC"));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
if (CollectionUtils.isNotEmpty(resultsSpectrums)) {
|
||||
for (GardsROIResultsSpectrum resultsSpectrum:resultsSpectrums){
|
||||
strBuffer.append(rowFormat(netRoi, StringPool.SPACE, String.valueOf(resultsSpectrum.getRoi()), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getNet()))+" +/- "+NumberFormatUtil.numberSixLen(String.valueOf(Math.sqrt(resultsSpectrum.getNetErr()))), NumberFormatUtil.numberSixLen(String.valueOf(resultsSpectrum.getLcCts()))));
|
||||
strBuffer.append(System.lineSeparator());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user