package com.huimv.env.dao.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Entity
@Table(name = "sj_hk_wd")
public class SjHkWdEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID", nullable = false)
    private Integer ID;

    /**
     * 栏期ID
     */
    @Column(name = "LQID")
    private Integer LQID;

    /**
     * 传感器ID
     */
    @Column(name = "CGQID")
    private String CGQID;

    /**
     * 当前温度
     */
    @Column(name = "DQWD")
    private BigDecimal DQWD;

    /**
     * 采集时间
     */
    @Column(name = "CJSJ")
    private Timestamp CJSJ;

    /**
     * 上传时间
     */
    @Column(name = "SCSJ")
    private Timestamp SCSJ;

    public void setID(Integer ID) {
        this.ID = ID;
    }

    public Integer getID() {
        return ID;
    }

    /**
     * 栏期ID
     */
    public void setLQID(Integer LQID) {
        this.LQID = LQID;
    }

    /**
     * 栏期ID
     */
    public Integer getLQID() {
        return LQID;
    }

    /**
     * 传感器ID
     */
    public void setCGQID(String CGQID) {
        this.CGQID = CGQID;
    }

    /**
     * 传感器ID
     */
    public String getCGQID() {
        return CGQID;
    }

    /**
     * 当前温度
     */
    public void setDQWD(BigDecimal DQWD) {
        this.DQWD = DQWD;
    }

    /**
     * 当前温度
     */
    public BigDecimal getDQWD() {
        return DQWD;
    }

    /**
     * 采集时间
     */
    public void setCJSJ(Timestamp CJSJ) {
        this.CJSJ = CJSJ;
    }

    /**
     * 采集时间
     */
    public Timestamp getCJSJ() {
        return CJSJ;
    }

    /**
     * 上传时间
     */
    public void setSCSJ(Timestamp SCSJ) {
        this.SCSJ = SCSJ;
    }

    /**
     * 上传时间
     */
    public Timestamp getSCSJ() {
        return SCSJ;
    }

    @Override
    public String toString() {
        return "SjHkWdEntity{" +
                "ID=" + ID + '\'' +
                "LQID=" + LQID + '\'' +
                "CGQID=" + CGQID + '\'' +
                "DQWD=" + DQWD + '\'' +
                "CJSJ=" + CJSJ + '\'' +
                "SCSJ=" + SCSJ + '\'' +
                '}';
    }
}
