电压暂降属性修改
This commit is contained in:
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.influxdb.annotation.Column;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@@ -19,16 +20,16 @@ import java.io.Serializable;
|
|||||||
public class DetailVO extends AreaLineInfoVO implements Serializable {
|
public class DetailVO extends AreaLineInfoVO implements Serializable {
|
||||||
|
|
||||||
@ApiModelProperty(name = "persistTime",value = "持续时间")
|
@ApiModelProperty(name = "persistTime",value = "持续时间")
|
||||||
private Double persistTime;
|
private Double duration;
|
||||||
|
|
||||||
@ApiModelProperty(name = "eventType",value = "暂态类型")
|
@ApiModelProperty(value = "暂降类型(Event_Type)")
|
||||||
private String eventType;
|
private String advanceType;
|
||||||
|
|
||||||
@ApiModelProperty(name = "eventValue",value = "特征幅值")
|
@ApiModelProperty(name = "eventValue",value = "特征幅值")
|
||||||
private Double eventValue;
|
private Double featureAmplitude;
|
||||||
|
|
||||||
@ApiModelProperty(name = "time",value = "发生时间")
|
@ApiModelProperty(name = "startTime",value = "发生时间")
|
||||||
private String timeId;
|
private String startTime;
|
||||||
|
|
||||||
@ApiModelProperty(name = "times",value = "次数")
|
@ApiModelProperty(name = "times",value = "次数")
|
||||||
private Integer times;
|
private Integer times;
|
||||||
|
|||||||
@@ -129,19 +129,22 @@ public class WaveTypeVO{
|
|||||||
private String eventDescribe;
|
private String eventDescribe;
|
||||||
|
|
||||||
@Column(name = "wave_type")
|
@Column(name = "wave_type")
|
||||||
private String waveType;
|
@ApiModelProperty(value = "统计类型")
|
||||||
|
private String eventType;
|
||||||
|
|
||||||
@Column(name = "persist_time")
|
@ApiModelProperty(value = "持续时间,单位秒")
|
||||||
private Double persistTime;
|
private Double duration;
|
||||||
|
|
||||||
@Column(name = "event_value")
|
@ApiModelProperty(value = "特征幅值")
|
||||||
private Double eventValue;
|
private Double featureAmplitude;
|
||||||
|
|
||||||
@Column(name = "event_reason")
|
@Column(name = "event_reason")
|
||||||
private String eventReason;
|
@ApiModelProperty(value = "暂降原因(Event_Reason)")
|
||||||
|
private String advanceReason;
|
||||||
|
|
||||||
@Column(name = "event_type")
|
@Column(name = "event_type")
|
||||||
private String eventType;
|
@ApiModelProperty(value = "暂降类型(Event_Type)")
|
||||||
|
private String advanceType;
|
||||||
|
|
||||||
@Column(name = "eventass_index")
|
@Column(name = "eventass_index")
|
||||||
private String eventassIndex;
|
private String eventassIndex;
|
||||||
|
|||||||
@@ -510,8 +510,8 @@ public class ReportServiceImpl implements ReportService {
|
|||||||
List<DictData> type = reason.getData();
|
List<DictData> type = reason.getData();
|
||||||
for (DetailVO detailVO : result) {
|
for (DetailVO detailVO : result) {
|
||||||
for (DictData dictData : type) {
|
for (DictData dictData : type) {
|
||||||
if (dictData.getId().equals(detailVO.getEventType())) {
|
if (dictData.getId().equals(detailVO.getAdvanceType())) {
|
||||||
detailVO.setEventType(dictData.getName());
|
detailVO.setAdvanceType(dictData.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2011,11 +2011,11 @@ public class ReportServiceImpl implements ReportService {
|
|||||||
List<DictData> eventTypeList = type.getData();
|
List<DictData> eventTypeList = type.getData();
|
||||||
|
|
||||||
for (WaveTypeVO waveTypeVO : eventDetailList) {
|
for (WaveTypeVO waveTypeVO : eventDetailList) {
|
||||||
if (waveTypeVO.getEventReason() != null) {
|
if (waveTypeVO.getAdvanceReason() != null) {
|
||||||
for (DictData dictData : eventReasonList) {
|
for (DictData dictData : eventReasonList) {
|
||||||
//将字典数据id与VO中属性eventReason对应的字符串进行比较
|
//将字典数据id与VO中属性eventReason对应的字符串进行比较
|
||||||
if (waveTypeVO.getEventReason().equals(dictData.getId())) {
|
if (waveTypeVO.getAdvanceReason().equals(dictData.getId())) {
|
||||||
waveTypeVO.setEventReason(dictData.getName());
|
waveTypeVO.setAdvanceReason(dictData.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -2025,11 +2025,11 @@ public class ReportServiceImpl implements ReportService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (WaveTypeVO waveTypeVO : eventDetailList) {
|
for (WaveTypeVO waveTypeVO : eventDetailList) {
|
||||||
if (waveTypeVO.getEventType() != null) {
|
if (waveTypeVO.getAdvanceType() != null) {
|
||||||
for (DictData dictData : eventTypeList) {
|
for (DictData dictData : eventTypeList) {
|
||||||
//将字典数据id与VO中属性eventType对应的字符串进行比较
|
//将字典数据id与VO中属性eventType对应的字符串进行比较
|
||||||
if (waveTypeVO.getEventType().equals(dictData.getId())) {
|
if (waveTypeVO.getAdvanceType().equals(dictData.getId())) {
|
||||||
waveTypeVO.setEventType(dictData.getName());
|
waveTypeVO.setAdvanceType(dictData.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user