package com.njcn.product.advance.harmonicUp.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 org.springframework.beans.BeanUtils;

import java.time.Instant;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 类的介绍：
 *
 */
@Data
@Measurement(name = "data_v_up")
public class DataVUp {

    @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 phasicType;

    @Column(name = "value_type", tag = true)
    private String valueType;

    @Column(name = "quality_flag", tag = true)
    private String qualityFlag="0";

    //是否是异常指标数据，0否1是
    @Column(name = "abnormal_flag")
    private Integer abnormalFlag;

    @Column(name = "v_1")
    private Double v1;

    @Column(name = "v_2")
    private Double v2;

    @Column(name = "v_3")
    private Double v3;

    @Column(name = "v_4")
    private Double v4;

    @Column(name = "v_5")
    private Double v5;

    @Column(name = "v_6")
    private Double v6;

    @Column(name = "v_7")
    private Double v7;

    @Column(name = "v_8")
    private Double v8;

    @Column(name = "v_9")
    private Double v9;

    @Column(name = "v_10")
    private Double v10;

    @Column(name = "v_11")
    private Double v11;

    @Column(name = "v_12")
    private Double v12;

    @Column(name = "v_13")
    private Double v13;

    @Column(name = "v_14")
    private Double v14;

    @Column(name = "v_15")
    private Double v15;

    @Column(name = "v_16")
    private Double v16;

    @Column(name = "v_17")
    private Double v17;

    @Column(name = "v_18")
    private Double v18;

    @Column(name = "v_19")
    private Double v19;

    @Column(name = "v_20")
    private Double v20;

    @Column(name = "v_21")
    private Double v21;

    @Column(name = "v_22")
    private Double v22;

    @Column(name = "v_23")
    private Double v23;

    @Column(name = "v_24")
    private Double v24;

    @Column(name = "v_25")
    private Double v25;

    @Column(name = "v_26")
    private Double v26;

    @Column(name = "v_27")
    private Double v27;

    @Column(name = "v_28")
    private Double v28;

    @Column(name = "v_29")
    private Double v29;

    @Column(name = "v_30")
    private Double v30;

    @Column(name = "v_31")
    private Double v31;

    @Column(name = "v_32")
    private Double v32;

    @Column(name = "v_33")
    private Double v33;

    @Column(name = "v_34")
    private Double v34;

    @Column(name = "v_35")
    private Double v35;

    @Column(name = "v_36")
    private Double v36;

    @Column(name = "v_37")
    private Double v37;

    @Column(name = "v_38")
    private Double v38;

    @Column(name = "v_39")
    private Double v39;

    @Column(name = "v_40")
    private Double v40;

    @Column(name = "v_41")
    private Double v41;

    @Column(name = "v_42")
    private Double v42;

    @Column(name = "v_43")
    private Double v43;

    @Column(name = "v_44")
    private Double v44;

    @Column(name = "v_45")
    private Double v45;

    @Column(name = "v_46")
    private Double v46;

    @Column(name = "v_47")
    private Double v47;

    @Column(name = "v_48")
    private Double v48;

    @Column(name = "v_49")
    private Double v49;

    @Column(name = "v_50")
    private Double v50;



}
