package org.well.well.domain;

import org.well.well.util.SnowFlakeUtil;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * 压力监测终端
 *
 * @author cz
 * @date 2023-11-10
 */
@Entity
@Table(name = "data_pressure")
public class Pressure {

    /**
     *
     */
    private static final long serialVersionUID = 566089135526318712L;

    private Long dbId;
    private String devCode; //设备编号
    private String wellCode; //井编号
    private String dataValue; //浓度
    private String cell;       //电池电量
    private String descn;       //状态描述
    private Timestamp uptime;       //采集时间
    private Timestamp 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 = "DATA_VALUE")
    public String getDataValue() {
        return dataValue;
    }

    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    @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 Timestamp getUptime() {
        return uptime;
    }

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

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

    public void setLogtime(Timestamp 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 Pressure() {
    }

    public Pressure(String devCode, String wellCode, String dataValue, String cell, Timestamp uptime, Timestamp logtime,String snr,String pci,String rsrp) {
        this.dbId = SnowFlakeUtil.getId();
        this.devCode = devCode;
        this.wellCode = wellCode;
        this.dataValue = dataValue;
        this.cell = cell;
        this.uptime = uptime;
        this.logtime = logtime;
        this.pci=pci;
        this.rsrp=rsrp;
        this.snr=snr;
    }


}
