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_sd")
public class SjHkSdEntity 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 = "DQSD")
    private BigDecimal DQSD;

    /**
     * 采集时间
     */
    @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 setDQSD(BigDecimal DQSD) {
        this.DQSD = DQSD;
    }

    /**
     * 当前湿度
     */
    public BigDecimal getDQSD() {
        return DQSD;
    }

    /**
     * 采集时间
     */
    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 "SjHkSdEntity{" +
                "ID=" + ID + '\'' +
                "LQID=" + LQID + '\'' +
                "CGQID=" + CGQID + '\'' +
                "DQSD=" + DQSD + '\'' +
                "CJSJ=" + CJSJ + '\'' +
                "SCSJ=" + SCSJ + '\'' +
                '}';
    }
}
