package com.uas.platform.b2b.manage.model;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * ERP提醒校验记录，方便查询两边数据
 *
 * @author hejq
 * @date 2018-08-24 11:05
 */
@Entity
@Table(name = "purc$notice$record", indexes = {
        @Index(name = "purc$notice$record_enuu_IDX", columnList = "no_enuu")
})
public class NoticeRecordInfo implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @Column(name = "no_id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    /**
     * 企业UU
     */
    @Column(name = "no_enuu")
    @NotNull
    private Long enUU;

    /**
     * 企业名称
     */
    @Column(name = "no_enname")
    private String enName = "";

    /**
     * 录入时间
     */
    @Column(name = "no_date")
    private Date date = new Date(System.currentTimeMillis());

    /**
     * 描述
     */
    @Column(name = "no_describe")
    private String describe = "";

    /**
     * 单据类型
     *  <pre>
     *      结案、发货
     *  </pre>
     */
    @Column(name = "no_kind")
    private String kind = "";

    /**
     * 明细异常数据条数
     */
    @Column(name = "no_errcount")
    private Integer errorCount = 0;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEnUU() {
        return enUU;
    }

    public void setEnUU(Long enUU) {
        this.enUU = enUU;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Integer getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(Integer errorCount) {
        this.errorCount = errorCount;
    }
}
