From ed029139d3b7d4f82dabcfc7bf56203ea560da3f Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Thu, 8 Jan 2026 09:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=B3=E6=80=81word=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=EF=BC=8C=E5=9F=BA=E6=B3=A2=E7=94=B5=E6=B5=81=E5=9F=BA=E6=B3=A2?= =?UTF-8?q?=E7=94=B5=E5=8E=8B=E9=94=99=E8=AF=AF=EF=BC=8C=E9=95=BF=E9=97=AA?= =?UTF-8?q?=E7=9F=AD=E9=97=AA=E9=94=99=E4=B9=B1=EF=BC=8C2-25=E7=94=B5?= =?UTF-8?q?=E5=8E=8B=E5=90=AB=E6=9C=89=E7=8E=87=EF=BC=8C=E7=94=B5=E6=B5=81?= =?UTF-8?q?=E5=B9=85=E5=80=BC=E9=94=99=E4=B9=B1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ExportModelController.java | 55 ++++++++++--------- .../harmonic/mapper/mapping/ReportMapper.xml | 20 ++++--- .../service/impl/ReportServiceImpl.java | 32 +++++++---- 3 files changed, 60 insertions(+), 47 deletions(-) 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 + +