Files
pqs-influx/src/main/java/com/njcn/influx/pojo/po/DataPlt.java
xy c5b300abbf feat(influx): 添加数据实体类的时间列注解和新字段
- 为多个数据实体类添加 @TimeColumn 注解以标识时间列
- 在多个数据实体类中新增 cl_did 和 process 字段
- 为 PqdData 类添加 quality_flag 字段作为标签
- 更新 DataInHarmRateI 类的时间序列化配置
- 统一数据实体类中的异常标志字段定义
2026-05-25 20:00:30 +08:00

61 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.njcn.influx.pojo.po;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
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;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/12 16:01
*/
@Data
@Measurement(name = "data_plt")
public class DataPlt {
@TimeColumn
@Column(name = "time", tag = true)
@JsonSerialize(using = InstantDateSerializer.class)
private Instant time;
@Column(name = "line_id", tag = true)
private String lineId;
@Column(name = "phasic_type", tag = true)
private String phaseType;
@Column(name = "value_type", tag = true)
private String valueType;
@Column(name = "quality_flag", tag = true)
private String qualityFlag;
@Column(name = "plt")
private Double plt;
//自定义字段-闪变总计算次数
@Column(name = "flicker_all_time")
private Integer flickerAllTime;
//自定义字段
@Column(name = "mean")
private Double mean;
//是否是异常指标数据0否1是
@Column(name = "abnormal_flag")
private Integer abnormalFlag;
@Column(name = "cl_did")
private String clDid;
@Column(name = "process")
private String process;
}