diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/ExportModelController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/ExportModelController.java index bfbb41b08..1ed240f28 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/ExportModelController.java +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/ExportModelController.java @@ -229,6 +229,9 @@ public class ExportModelController extends BaseController { } catch (Exception e1) { log.info("获取报表发生异常,异常是" + e1.getMessage()); } + //上移提前塞入基波电压基波电流 + getCurrentRate(param, overLimit); + getVoltageRate(param, overLimit); // 报告Map Map reportmap = new HashMap<>(16); @@ -334,14 +337,14 @@ public class ExportModelController extends BaseController { **** 三张大表基础数据幅值 ***************************************************************/ // 基波电压最大值 - reportmap.put("$C" + "V0" + "X" + "_A$", judgeNull(voltage1.getFmaxValue())); - reportmap.put("$C" + "V0" + "X" + "_B$", judgeNull(voltage2.getFmaxValue())); - reportmap.put("$C" + "V0" + "X" + "_C$", judgeNull(voltage3.getFmaxValue())); + reportmap.put("$C" + "V0" + "X" + "_A$", judgeNull(this.listVoltageRate.get(0).getList().get(0).getFmaxValue())); + reportmap.put("$C" + "V0" + "X" + "_B$", judgeNull(this.listVoltageRate.get(0).getList().get(1).getFmaxValue())); + reportmap.put("$C" + "V0" + "X" + "_C$", judgeNull(this.listVoltageRate.get(0).getList().get(2).getFmaxValue())); // 基波电流最大值 - reportmap.put("$C" + "I0" + "X" + "_A$", judgeNull(current1.getFmaxValue())); - reportmap.put("$C" + "I0" + "X" + "_B$", judgeNull(current2.getFmaxValue())); - reportmap.put("$C" + "I0" + "X" + "_C$", judgeNull(current3.getFmaxValue())); + reportmap.put("$C" + "I0" + "X" + "_A$", judgeNull(this.listICurrent.get(0).getList().get(0).getFmaxValue())); + reportmap.put("$C" + "I0" + "X" + "_B$", judgeNull(this.listICurrent.get(0).getList().get(1).getFmaxValue())); + reportmap.put("$C" + "I0" + "X" + "_C$", judgeNull(this.listICurrent.get(0).getList().get(2).getFmaxValue())); // 基波电压最小值 reportmap.put("$B" + "V0" + "N" + "_A$", judgeNull(voltage1.getMinValue())); @@ -357,14 +360,14 @@ public class ExportModelController extends BaseController { **** 三张大表基础数据幅值 ***************************************************************/ // 基波电压最小值 - reportmap.put("$C" + "V0" + "N" + "_A$", judgeNull(voltage1.getMinValue())); - reportmap.put("$C" + "V0" + "N" + "_B$", judgeNull(voltage2.getMinValue())); - reportmap.put("$C" + "V0" + "N" + "_C$", judgeNull(voltage3.getMinValue())); + reportmap.put("$C" + "V0" + "N" + "_A$", judgeNull(this.listVoltageRate.get(0).getList().get(0).getMinValue())); + reportmap.put("$C" + "V0" + "N" + "_B$", judgeNull(this.listVoltageRate.get(0).getList().get(1).getMinValue())); + reportmap.put("$C" + "V0" + "N" + "_C$", judgeNull(this.listVoltageRate.get(0).getList().get(2).getMinValue())); // 基波电流最小值 - reportmap.put("$C" + "I0" + "N" + "_A$", judgeNull(current1.getMinValue())); - reportmap.put("$C" + "I0" + "N" + "_B$", judgeNull(current2.getMinValue())); - reportmap.put("$C" + "I0" + "N" + "_C$", judgeNull(current3.getMinValue())); + reportmap.put("$C" + "I0" + "N" + "_A$", judgeNull(this.listICurrent.get(0).getList().get(0).getMinValue())); + reportmap.put("$C" + "I0" + "N" + "_B$", judgeNull(this.listICurrent.get(0).getList().get(1).getMinValue())); + reportmap.put("$C" + "I0" + "N" + "_C$", judgeNull(this.listICurrent.get(0).getList().get(2).getMinValue())); // 基波电压平均值 reportmap.put("$B" + "V0" + "E" + "_A$", judgeNull(voltage1.getMeanValue())); @@ -380,14 +383,14 @@ public class ExportModelController extends BaseController { **** 三张大表基础数据幅值 ***************************************************************/ // 基波电压平均值 - reportmap.put("$C" + "V0" + "E" + "_A$", judgeNull(voltage1.getMeanValue())); - reportmap.put("$C" + "V0" + "E" + "_B$", judgeNull(voltage2.getMeanValue())); - reportmap.put("$C" + "V0" + "E" + "_C$", judgeNull(voltage3.getMeanValue())); + reportmap.put("$C" + "V0" + "E" + "_A$", judgeNull(this.listVoltageRate.get(0).getList().get(0).getMeanValue())); + reportmap.put("$C" + "V0" + "E" + "_B$", judgeNull(this.listVoltageRate.get(0).getList().get(1).getMeanValue())); + reportmap.put("$C" + "V0" + "E" + "_C$", judgeNull(this.listVoltageRate.get(0).getList().get(2).getMeanValue())); // 基波电流平均值 - reportmap.put("$C" + "I0" + "E" + "_A$", judgeNull(current1.getMeanValue())); - reportmap.put("$C" + "I0" + "E" + "_B$", judgeNull(current2.getMeanValue())); - reportmap.put("$C" + "I0" + "E" + "_C$", judgeNull(current3.getMeanValue())); + reportmap.put("$C" + "I0" + "E" + "_A$", judgeNull(this.listICurrent.get(0).getList().get(0).getMeanValue())); + reportmap.put("$C" + "I0" + "E" + "_B$", judgeNull(this.listICurrent.get(0).getList().get(1).getMeanValue())); + reportmap.put("$C" + "I0" + "E" + "_C$", judgeNull(this.listICurrent.get(0).getList().get(2).getMeanValue())); // 基波电压cp95值 reportmap.put("$B" + "V0" + "%" + "_A$", judgeNull(voltage1.getCp95Value())); @@ -403,14 +406,14 @@ public class ExportModelController extends BaseController { **** 三张大表基础数据幅值 ***************************************************************/ // 基波电压cp95值 - reportmap.put("$C" + "V0" + "%" + "_A$", judgeNull(voltage1.getCp95Value())); - reportmap.put("$C" + "V0" + "%" + "_B$", judgeNull(voltage2.getCp95Value())); - reportmap.put("$C" + "V0" + "%" + "_C$", judgeNull(voltage3.getCp95Value())); + reportmap.put("$C" + "V0" + "%" + "_A$", judgeNull(this.listVoltageRate.get(0).getList().get(0).getCp95Value())); + reportmap.put("$C" + "V0" + "%" + "_B$", judgeNull(this.listVoltageRate.get(0).getList().get(1).getCp95Value())); + reportmap.put("$C" + "V0" + "%" + "_C$", judgeNull(this.listVoltageRate.get(0).getList().get(2).getCp95Value())); // 基波电流cp95值 - reportmap.put("$C" + "I0" + "%" + "_A$", judgeNull(current1.getCp95Value())); - reportmap.put("$C" + "I0" + "%" + "_B$", judgeNull(current2.getCp95Value())); - reportmap.put("$C" + "I0" + "%" + "_C$", judgeNull(current3.getCp95Value())); + reportmap.put("$C" + "I0" + "%" + "_A$", judgeNull(this.listICurrent.get(0).getList().get(0).getCp95Value())); + reportmap.put("$C" + "I0" + "%" + "_B$", judgeNull(this.listICurrent.get(0).getList().get(1).getCp95Value())); + reportmap.put("$C" + "I0" + "%" + "_C$", judgeNull(this.listICurrent.get(0).getList().get(2).getCp95Value())); // 遍历map中的值 int iCount = 0; @@ -549,8 +552,8 @@ public class ExportModelController extends BaseController { getDistortion(param, overLimit); getFre(param, overLimit); getThreePhase(param, overLimit); - getVoltageRate(param, overLimit); - getCurrentRate(param, overLimit); +// getVoltageRate(param, overLimit); +// getCurrentRate(param, overLimit); // 短闪 ReportValue pst1 = this.listFlicker.get(0).getList().get(0); // 短闪 diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/ReportMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/ReportMapper.xml index e1e333f8b..0eaf207b1 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/ReportMapper.xml +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/ReportMapper.xml @@ -236,13 +236,14 @@ GROUP BY phasic_type + +