调整检测报告
This commit is contained in:
@@ -1993,7 +1993,6 @@ public class ResultServiceImpl implements IResultService {
|
||||
String resultTemp = singlePhaseData.get(ItemReportKeyEnum.RESULT.getKey());
|
||||
if (StrUtil.isNotBlank(resultTemp)) {
|
||||
allResult.add(resultTemp);
|
||||
|
||||
// 收集特殊情况
|
||||
if ("无法比较".equals(resultTemp)) {
|
||||
String numOfDataStr = singlePhaseData.get(ItemReportKeyEnum.NUM_OF_DATA.getKey());
|
||||
@@ -2440,10 +2439,13 @@ public class ResultServiceImpl implements IResultService {
|
||||
}
|
||||
dataMap.put(ItemReportKeyEnum.TEST.getKey(), testValue);
|
||||
|
||||
|
||||
// 误差 - 根据参数决定是否格式化
|
||||
String errorValue = String.valueOf(detectionData.getErrorData());
|
||||
if (decimalPlaces != null && detectionData.getErrorData() != null) {
|
||||
if (decimalPlaces != null && detectionData.getErrorData() != null ) {
|
||||
errorValue = formatSignificantDigits(detectionData.getErrorData().doubleValue(), decimalPlaces);
|
||||
}else{
|
||||
errorValue = "/";
|
||||
}
|
||||
dataMap.put(ItemReportKeyEnum.ERROR.getKey(), errorValue);
|
||||
|
||||
@@ -2451,6 +2453,8 @@ public class ResultServiceImpl implements IResultService {
|
||||
String errorScope = String.valueOf(detectionData.getRadius());
|
||||
if (decimalPlaces != null && detectionData.getRadius() != null) {
|
||||
errorScope = formatErrorRange(detectionData.getRadius(), decimalPlaces);
|
||||
}else{
|
||||
errorScope = "/";
|
||||
}
|
||||
dataMap.put(ItemReportKeyEnum.A_ERROR_SCOPE.getKey(), errorScope);
|
||||
|
||||
@@ -2573,6 +2577,8 @@ public class ResultServiceImpl implements IResultService {
|
||||
String errorValue = String.valueOf(detectionData.getErrorData());
|
||||
if (decimalPlaces != null && detectionData.getErrorData() != null) {
|
||||
errorValue = formatSignificantDigits(detectionData.getErrorData().doubleValue(), decimalPlaces);
|
||||
}else{
|
||||
errorValue = "/";
|
||||
}
|
||||
dataMap.put(ItemReportKeyEnum.ERROR.getKey(), errorValue);
|
||||
|
||||
@@ -2580,6 +2586,8 @@ public class ResultServiceImpl implements IResultService {
|
||||
String errorScope = String.valueOf(detectionData.getRadius());
|
||||
if (decimalPlaces != null && detectionData.getRadius() != null) {
|
||||
errorScope = formatErrorRange(detectionData.getRadius(), decimalPlaces);
|
||||
}else{
|
||||
errorScope = "/";
|
||||
}
|
||||
dataMap.put(ItemReportKeyEnum.A_ERROR_SCOPE.getKey(), errorScope);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user