package org.well.well.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Entity
@Table(name = "data_dig")
public class NoiseDig implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 566089135526318711L;
	private Long dbId;
	private String devCode; //设备编号
	private String wellCode; //井编号
	private String dData; //噪声值
	private String frequency; //频率
	private String cell;       //电池电量
	private String descn;       //状态描述
	private Date uptime;       //采集时间
	private Date logtime;      //记录时间
	private String pci;
	private String rsrp;
	private String snr;


	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getDbId() {
		return dbId;
	}

	public void setDbId(Long dbId) {
		this.dbId = dbId;
	}

	@Column(name = "DDATA")
	public String getdData() {
		return dData;
	}

	public void setdData(String dData) {
		this.dData = dData;
	}

	@Column(name = "FREQUENCY")
	public String getFrequency() {
		return frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}

	@Column(name = "DEVCODE")
	public String getDevCode() {
		return devCode;
	}

	public void setDevCode(String devCode) {
		this.devCode = devCode;
	}

	@Column(name = "WELL_CODE")
	public String getWellCode() {
		return wellCode;
	}

	public void setWellCode(String wellCode) {
		this.wellCode = wellCode;
	}

	@Column(name = "DESCN")
	public String getDescn() {
		return descn;
	}

	public void setDescn(String descn) {
		this.descn = descn;
	}

	@Column(name = "CELL")
	public String getCell() {
		return cell;
	}

	public void setCell(String cell) {
		this.cell = cell;
	}

	@Column(name = "UPTIME")
    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    @Column(name = "LOGTIME")
    public Date getLogtime() {
        return logtime;
    }

    public void setLogtime(Date logtime) {
        this.logtime = logtime;
    }
	@Column(name = "PCI")
	public String getPci() {
		return pci;
	}

	public void setPci(String pci) {
		this.pci = pci;
	}

	@Column(name = "RSRP")
	public String getRsrp() {
		return rsrp;
	}

	public void setRsrp(String rsrp) {
		this.rsrp = rsrp;
	}

	@Column(name = "SNR")
	public String getSnr() {
		return snr;
	}

	public void setSnr(String snr) {
		this.snr = snr;
	}

    public NoiseDig(String devId, String wellCode,String cell, Date uptime, String frequency, String dData) {
        this.devCode = devId;
        this.wellCode = wellCode;
        this.cell = cell;
        this.uptime = uptime;
        this.logtime = new Date();
        this.frequency = frequency;
        this.dData = dData;
    }
}
