influx查询数据方式调整
This commit is contained in:
@@ -3,10 +3,7 @@ package com.njcn.influx.pojo.dto;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.njcn.common.utils.serializer.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
import retrofit2.http.Field;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@@ -21,13 +18,23 @@ import java.time.Instant;
|
||||
|
||||
@Data
|
||||
public class StatisticalDataDTO {
|
||||
|
||||
@Column(name = "time")
|
||||
@JsonSerialize(using = InstantDateSerializer.class)
|
||||
private Instant time;
|
||||
private String LineId;
|
||||
private String Phase;
|
||||
@Column(name = "Stat_Method")
|
||||
private String statMethod;
|
||||
|
||||
@Column(name = "line_id")
|
||||
private String lineId;
|
||||
|
||||
@Column(name = "phasic_type")
|
||||
private String phaseType;
|
||||
|
||||
@Column(name = "value_type")
|
||||
private String valueType;
|
||||
|
||||
private Double value;
|
||||
|
||||
private String statisticalName;
|
||||
private Double statisticalData;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user