From 9c6547c13bb3763c07127710110757569f3af7ea Mon Sep 17 00:00:00 2001 From: yang_shj Date: Tue, 11 Apr 2023 16:09:19 +0800 Subject: [PATCH] =?UTF-8?q?#inspect=20=E6=94=BE=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/constant/HomePageConstant.java | 4 - .../operational/main/vo/PhotovoltaicDeviceVo.java | 197 +++++++++++++++++++++ hzims-service-api/inspect-api/pom.xml | 12 +- hzims-service/inspect/pom.xml | 9 +- .../impl/HistoryAbnormalAlarmServiceImpl.java | 4 +- .../main/service/impl/PhotovoltaicServiceImpl.java | 98 +++++++++- hzims-service/safeproduct/pom.xml | 1 - 7 files changed, 307 insertions(+), 18 deletions(-) diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/constant/HomePageConstant.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/constant/HomePageConstant.java index 7283b3c..b90418e 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/constant/HomePageConstant.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/constant/HomePageConstant.java @@ -1,9 +1,5 @@ package com.hnac.hzims.operational.main.constant; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.NullSerializer; -import io.swagger.annotations.ApiModelProperty; - import java.util.Arrays; import java.util.List; diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/PhotovoltaicDeviceVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/PhotovoltaicDeviceVo.java index 3264158..b81247b 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/PhotovoltaicDeviceVo.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/PhotovoltaicDeviceVo.java @@ -98,4 +98,201 @@ public class PhotovoltaicDeviceVo { @ApiModelProperty(value = "近30天用电量") private List generationPowerVoList; + + + @ApiModelProperty(value = "直流电流1") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_one; + + @ApiModelProperty(value = "直流电流2") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_two; + + @ApiModelProperty(value = "直流电流3") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_three; + + @ApiModelProperty(value = "直流电流4") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_four; + + @ApiModelProperty(value = "直流电流5") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_five; + + @ApiModelProperty(value = "直流电流6") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_six; + + @ApiModelProperty(value = "直流电流7") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_seven; + + @ApiModelProperty(value = "直流电流8") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_eight; + + @ApiModelProperty(value = "直流电流9") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_nine; + + @ApiModelProperty(value = "直流电流10") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_ten; + + @ApiModelProperty(value = "直流电流11") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_eleven; + + @ApiModelProperty(value = "直流电流12") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double direct_twelve; + + @ApiModelProperty(value = "直流电压1") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_one; + + @ApiModelProperty(value = "直流电压2") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_two; + + @ApiModelProperty(value = "直流电压3") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_three; + + @ApiModelProperty(value = "直流电压4") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_four; + + @ApiModelProperty(value = "直流电压5") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_five; + + @ApiModelProperty(value = "直流电压6") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_six; + + @ApiModelProperty(value = "直流电压7") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_seven; + + @ApiModelProperty(value = "直流电压8") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_eight; + + @ApiModelProperty(value = "直流电压9") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_nine; + + + @ApiModelProperty(value = "直流电压10") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_ten; + + @ApiModelProperty(value = "直流电压11") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_eleven; + + @ApiModelProperty(value = "直流电压12") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double dc_voltage_twelve; + + + @ApiModelProperty(value = "直流电流1") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_one; + + @ApiModelProperty(value = "直流电流2") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_two; + + @ApiModelProperty(value = "直流电流3") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_three; + + @ApiModelProperty(value = "直流电流4") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_four; + + @ApiModelProperty(value = "直流电流5") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_five; + + @ApiModelProperty(value = "直流电流6") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_six; + + @ApiModelProperty(value = "直流电流7") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_seven; + + @ApiModelProperty(value = "直流电流8") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_eight; + + @ApiModelProperty(value = "直流电流9") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_nine; + + + @ApiModelProperty(value = "直流电流10") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_ten; + + @ApiModelProperty(value = "直流电流11") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_eleven; + + @ApiModelProperty(value = "直流电流12") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double series_twelve; + + @ApiModelProperty(value = "直流电压1") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_one; + + @ApiModelProperty(value = "直流电压2") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_two; + + @ApiModelProperty(value = "直流电压3") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_three; + + @ApiModelProperty(value = "直流电压4") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_four; + + @ApiModelProperty(value = "直流电压5") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_five; + + @ApiModelProperty(value = "直流电压6") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_six; + + @ApiModelProperty(value = "直流电压7") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_seven; + + @ApiModelProperty(value = "直流电压8") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_eight; + + @ApiModelProperty(value = "直流电压9") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_nine; + + + @ApiModelProperty(value = "直流电压10") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_ten; + + @ApiModelProperty(value = "直流电压11") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_eleven; + + @ApiModelProperty(value = "直流电压12") + @JsonSerialize(nullsUsing = NullSerializer.class) + private Double se_voltage_twelve; } diff --git a/hzims-service-api/inspect-api/pom.xml b/hzims-service-api/inspect-api/pom.xml index d0540ee..9be580b 100644 --- a/hzims-service-api/inspect-api/pom.xml +++ b/hzims-service-api/inspect-api/pom.xml @@ -3,20 +3,18 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - hzims-service-api - com.hnac.hzims - 4.0.0-SNAPSHOT + BladeX + org.springblade + 2.7.6.RELEASE + - 4.0.0 + com.hnac.hzinfo inspect-api - ${project.artifactId} jar - - 2.7.6.RELEASE diff --git a/hzims-service/inspect/pom.xml b/hzims-service/inspect/pom.xml index 846184e..7376582 100644 --- a/hzims-service/inspect/pom.xml +++ b/hzims-service/inspect/pom.xml @@ -4,13 +4,16 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.hnac.hzims - hzims-service - 4.0.0-SNAPSHOT + BladeX + org.springblade + 2.7.6.RELEASE 4.0.0 + + com.hnac.hzinfo.inspect hzinfo-inspect + jar 2.7.6.RELEASE diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/HistoryAbnormalAlarmServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/HistoryAbnormalAlarmServiceImpl.java index e28aaa2..5cc7cc1 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/HistoryAbnormalAlarmServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/HistoryAbnormalAlarmServiceImpl.java @@ -233,8 +233,8 @@ public class HistoryAbnormalAlarmServiceImpl extends BaseServiceImpl com.hnac.hzinfo inspect-api - 2.7.6.RELEASE com.hnac.hzims