word报表bug修改

This commit is contained in:
hzj
2026-01-19 13:36:36 +08:00
parent ca7f1010b0
commit fd6ec7bdf2

View File

@@ -582,7 +582,33 @@ public class MonitorHarmonicReportServiceImpl implements MonitorHarmonicReportSe
// 获取电压偏差 // 获取电压偏差
// 值错误判断 // 值错误判断
try { for (int i = 0; i < 3; i++) {
switch (i) {
case 0:
tmpstrMap = "A";
break;
case 1:
tmpstrMap = "B";
break;
default:
tmpstrMap = "C";
break;
}
ReportValue vdeviation = this.listVdeviation.get(0).getList().get(i);
if (Objects.equals("C", tmpstrMap) && pttype == 2) {
reportmap.put("$VDTX_C$", "-");
reportmap.put("$VDTN_C$", "-");
reportmap.put("$VDTE_C$", "-");
reportmap.put("$VDT%_C$", "-");
continue;
} else {
reportmap.put("$VDTX_" + tmpstrMap + "$", judgeNull(vdeviation.getFmaxValue()));
reportmap.put("$VDTN_" + tmpstrMap + "$", judgeNull(vdeviation.getMinValue()));
reportmap.put("$VDTE_" + tmpstrMap + "$", judgeNull(vdeviation.getMeanValue()));
reportmap.put("$VDT%_" + tmpstrMap + "$", judgeNull(vdeviation.getCp95Value()));
}
}
try {
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {
switch (i) { switch (i) {
case 0: case 0:
@@ -595,19 +621,19 @@ public class MonitorHarmonicReportServiceImpl implements MonitorHarmonicReportSe
tmpstrMap = "C"; tmpstrMap = "C";
break; break;
} }
ReportValue vdeviation = this.listVdeviation.get(0).getList().get(i); // ReportValue vdeviation = this.listVdeviation.get(0).getList().get(i);
if(Objects.equals("C",tmpstrMap)&&pttype == 2){ // if(Objects.equals("C",tmpstrMap)&&pttype == 2){
reportmap.put("$VDTX_C$", "-"); // reportmap.put("$VDTX_C$", "-");
reportmap.put("$VDTN_C$", "-"); // reportmap.put("$VDTN_C$", "-");
reportmap.put("$VDTE_C$", "-"); // reportmap.put("$VDTE_C$", "-");
reportmap.put("$VDT%_C$", "-"); // reportmap.put("$VDT%_C$", "-");
continue; // continue;
}else { // }else {
reportmap.put("$VDTX_" + tmpstrMap + "$", judgeNull(vdeviation.getFmaxValue())); // reportmap.put("$VDTX_" + tmpstrMap + "$", judgeNull(vdeviation.getFmaxValue()));
reportmap.put("$VDTN_" + tmpstrMap + "$", judgeNull(vdeviation.getMinValue())); // reportmap.put("$VDTN_" + tmpstrMap + "$", judgeNull(vdeviation.getMinValue()));
reportmap.put("$VDTE_" + tmpstrMap + "$", judgeNull(vdeviation.getMeanValue())); // reportmap.put("$VDTE_" + tmpstrMap + "$", judgeNull(vdeviation.getMeanValue()));
reportmap.put("$VDT%_" + tmpstrMap + "$", judgeNull(vdeviation.getCp95Value())); // reportmap.put("$VDT%_" + tmpstrMap + "$", judgeNull(vdeviation.getCp95Value()));
} // }
// 电压偏差 // 电压偏差
@@ -684,7 +710,7 @@ public class MonitorHarmonicReportServiceImpl implements MonitorHarmonicReportSe
// } // }
// 假如为空则所有的都满足 // 假如为空则所有的都满足
if ("".equals(tmpstrResultVdeviationdata)) { if ("".equals(tmpstrResultVdeviationdata)&&"".equals(strResultVdeviationdataValue)) {
strResultVdeviationdata += "从上表中可以看出" + strLineBaseName + "A、B、C三相电压偏差满足国标限值"+ldeviationLimit+"%至"+vdeviationLimit+"%)的要求。"; strResultVdeviationdata += "从上表中可以看出" + strLineBaseName + "A、B、C三相电压偏差满足国标限值"+ldeviationLimit+"%至"+vdeviationLimit+"%)的要求。";
} else { } else {
strAnalysis += tmpstrResultVdeviationdata + "电压偏差不满足国标限值("+vdeviationLimit+")的要求。"; strAnalysis += tmpstrResultVdeviationdata + "电压偏差不满足国标限值("+vdeviationLimit+")的要求。";