package com.uas.platform.b2b.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 代采订单传输到ERP的日志记录（错误记录统计）
 * 
 * @author hejq
 * @time 创建时间：2017年6月5日
 */
@Entity
@Table(name = "purc$deputyorderslog")
public class DeputyOrdersLog implements Serializable {

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

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

	/**
	 * 企业uu
	 */
	@Column(name = "log_enuu")
	private Long enuu;
	
	/**
	 * 原订单编号
	 */
	@Column(name = "log_sourceid")
	private Long sourceid;

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

	/**
	 * 消息
	 */
	@Column(name = "log_message")
	private String message;

	/**
	 * 时间
	 */
	@Column(name = "log_date")
	private Date date;

	/**
	 * 下载的明细数据大小
	 */
	@Column(name = "log_downloadize")
	private Integer downloadSize;

	/**
	 * 原单据数据大小
	 */
	@Column(name = "log_sourcesize")
	private Integer sourceSize;

	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 Long getSourceid() {
		return sourceid;
	}

	public void setSourceid(Long sourceid) {
		this.sourceid = sourceid;
	}

	public String getCode() {
		return code;
	}

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

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getDate() {
		return date;
	}

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

	public Integer getDownloadSize() {
		return downloadSize;
	}

	public void setDownloadSize(Integer downloadSize) {
		this.downloadSize = downloadSize;
	}

	public Integer getSourceSize() {
		return sourceSize;
	}

	public void setSourceSize(Integer sourceSize) {
		this.sourceSize = sourceSize;
	}

}
