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++) {
switch (i) {
case 0:
@@ -595,19 +621,19 @@ public class MonitorHarmonicReportServiceImpl implements MonitorHarmonicReportSe
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()));
}
// 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()));
// }
// 电压偏差
@@ -684,7 +710,7 @@ public class MonitorHarmonicReportServiceImpl implements MonitorHarmonicReportSe
// }
// 假如为空则所有的都满足
if ("".equals(tmpstrResultVdeviationdata)) {
if ("".equals(tmpstrResultVdeviationdata)&&"".equals(strResultVdeviationdataValue)) {
strResultVdeviationdata += "从上表中可以看出" + strLineBaseName + "A、B、C三相电压偏差满足国标限值"+ldeviationLimit+"%至"+vdeviationLimit+"%)的要求。";
} else {
strAnalysis += tmpstrResultVdeviationdata + "电压偏差不满足国标限值("+vdeviationLimit+")的要求。";