package com.uas.platform.b2b.model;

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

/**
 *  单据打印日志
 * Created by dongbw on 17/03/11 10:09.
 */
@Table(name = "print$log")
@Entity
public class PrintLog implements Serializable{

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

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

    /**
     * 打印时间
     */
    @Column(name = "pl_date")
    private Date date;

    /**
     * 操作人
     */
    @Column(name = "pl_user")
    private String user;

    /**
     * 打印单据类型
     */
    @Column(name = "pl_type")
    private String type;

    /**
     * 外键
     */
    @Column(name = "pl_foreign")
    private Long foreign;

    /**
     * 对应订单编号
     */
    @Column(name = "pl_code")
    private String code;

    /**
     * 关联表名
     */
    @Column(name = "pl_table")
    private String table;

    /**
     * 对应erp订单id
     */
    @Column(name = "pl_erpid")
    private Long erpId;

    /**
     * 打印日志传输状态(0为待上传，1为已上传)
     */
    @Column(name = "pl_status")
    private Short status;

    /**
     * 打印单据所属企业uu
     */
    @Column(name = "pl_enuu")
    private Long enUU;

    /**
     * 打印用户uu
     */
    @Column(name = "pl_useruu")
    private Long userUU;

    public Long getId() {
        return id;
    }

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

    public Date getDate() {
        return date;
    }

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

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getForeign() {
        return foreign;
    }

    public void setForeign(Long foreign) {
        this.foreign = foreign;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getErpId() {
        return erpId;
    }

    public void setErpId(Long erpId) {
        this.erpId = erpId;
    }

    public Long getEnUU() {
        return enUU;
    }

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

    public Long getUserUU() {
        return userUU;
    }

    public void setUserUU(Long userUU) {
        this.userUU = userUU;
    }

    public PrintLog() {
    }

    public PrintLog(Date date, String user, Long userUU, Long enUU, String type, Long foreign, String table, String code, Long erpId, Short status) {
        this.date = date;
        this.user = user;
        this.userUU = userUU;
        this.enUU = enUU;
        this.type = type;
        this.foreign = foreign;
        this.table = table;
        this.code = code;
        this.erpId = erpId;
        this.status = status;
    }
}
