package com.pqs9900.pojo.HisData;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author denghuajun
 * @Description //TODO 电压波动
 * @Date 2018/12/17 10:51
 **/
@Table(name = "data_fluc")
public class DataFluc {
    @Column(name = "TimeID")
    private Date timeID;//	datetime	Not NULL	数据更新时间
    @Column(name = "LineID")
    private int lineID;//	NUMBER(6)	Not NULL	监测点序号
    @Column(name = "PHASIC_TYPE")
    private String phasicType;//	VARCHAR2(2)	Not NULL	相别 ‘A’,‘B’,‘C’
    @Column(name = "FLUC")
    private Float fluc = 0f;//	Not NULL
    @Column(name = "FLUCCF")
    private Float fluccf = 0f;//Not NULL

    public Date getTimeID() {
        return timeID;
    }

    public void setTimeID(Date timeID) {
        this.timeID = timeID;
    }

    public int getLineID() {
        return lineID;
    }

    public void setLineID(int lineID) {
        this.lineID = lineID;
    }

    public String getPhasicType() {
        return phasicType;
    }

    public void setPhasicType(String phasicType) {
        this.phasicType = phasicType;
    }

    public Float getFluc() {
        return fluc;
    }

    public void setFluc(Float fluc) {
        this.fluc = fluc;
    }

    public Float getFluccf() {
        return fluccf;
    }

    public void setFluccf(Float fluccf) {
        this.fluccf = fluccf;
    }

    public int getQualityFlag() {
        return qualityFlag;
    }

    public void setQualityFlag(int qualityFlag) {
        this.qualityFlag = qualityFlag;
    }

    @Column(name = "QualityFlag")
    private int qualityFlag;//Not NULL	数据质量标志（00-表示是正常数据01-表示是错误数据02-表示是有事件的数据）数据库默认是0，污染数据不参与报表统计

    @Override
    public String toString() {
        return "DataFluc{" +
                "timeID=" + timeID +
                ", lineID=" + lineID +
                ", phasicType='" + phasicType + '\'' +
                ", fluc=" + fluc +
                ", fluccf=" + fluccf +
                ", qualityFlag=" + qualityFlag +
                '}';
    }
}
