feat(influx): 添加数据实体类的时间列注解和新字段
- 为多个数据实体类添加 @TimeColumn 注解以标识时间列 - 在多个数据实体类中新增 cl_did 和 process 字段 - 为 PqdData 类添加 quality_flag 字段作为标签 - 更新 DataInHarmRateI 类的时间序列化配置 - 统一数据实体类中的异常标志字段定义
This commit is contained in:
@@ -5,6 +5,7 @@ import com.njcn.influx.utils.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
import org.influxdb.annotation.TimeColumn;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@@ -19,6 +20,7 @@ import java.time.Instant;
|
||||
@Measurement(name = "data_harmpower_q")
|
||||
public class DataHarmPowerQ {
|
||||
|
||||
@TimeColumn
|
||||
@Column(name = "time")
|
||||
@JsonSerialize(using = InstantDateSerializer.class)
|
||||
private Instant time;
|
||||
@@ -193,4 +195,10 @@ public class DataHarmPowerQ {
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "cl_did")
|
||||
private String clDid;
|
||||
|
||||
@Column(name = "process")
|
||||
private String process;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user