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
@Data
@Table(name = "sj_dl")
public class SjDl implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 采集器ID
     */
    @Column(name = "CGQID")
    private String CGQID;

    /**
     * 当前电量
     */
    @Column(name = "DQDL")
    private BigDecimal DQDL;

    /**
     * 采集时间
     */
    @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;

}
