package com.huimv.video.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "sj_ph")
@Data
public class SjPh implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 当前PH
     */
    @Column(name = "DQPH")
    private BigDecimal DQPH;

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

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "HH:mm",timezone="GMT+8")
    @Column(name = "SCSJ")
    private Date SCSJ;

    /**
     * 机器ID
     */
    @Column(name = "JQID")
    private String JQID;

}
