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

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

/**
 * 审批日志
 */
@Entity
@Table(name = "office$applog")
public class ApprovalLog implements Serializable {

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

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "log_id")
	private Long id;
	
	/**
	 * 单据类型名称
	 */
	@Column(name = "log_caller")
	private String caller;
	
	/**
	 * 关键值,生成的单据的id
	 */
	@Column(name = "log_keyvalue")
	private Long keyvalue;
	
	/**
	 * 节点描述
	 */
	@Column(name = "log_nodename")
	private String nodename;
	
	/**
	 * 节点处理人编号
	 */
	@Column(name = "log_nodedealman")
	private Long nodedealman;

	/**
	 * 节点处理人
	 */
	@Column(name = "log_nodedealmanname")
	private String nodedealmanname;

	/**
	 * 进程id
	 */
	@Column(name = "log_processid")
	private Long processid;

	/**
	 * 企业uu
	 */
	@Column(name = "log_enuu")
	private Long enuu;

	/**
	 * 这条单据的申请人编号
	 */
	@Column(name = "log_emcode")
	private Long emcode;

	/**
	 * 单据来源id
	 */
	@Column(name = "log_sourceid")
	private Long sourceid;

	/**
	 * 申请时间
	 */
	@Column(name = "log_sourcedate")
	private Date sourcedate;

	/**
	 * 审核结果
	 */
	@Column(name = "log_dealresult")
	private String dealresult;

	/**
	 * 描述
	 */
	@Column(name = "log_nodedescription")
	private String nodedescription;

	/**
	 * 审批状态
	 */
	@Column(name = "log_status")
	private String status;

	/**
	 * 审批状态码
	 */
	@Column(name = "log_statuscode")
	private String statuscode;

	/**
	 * 处理时间
	 */
	@Column(name = "log_dealdate")
	private Date dealdate;

	public Long getId() {
		return id;
	}

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

	public String getCaller() {
		return caller;
	}

	public void setCaller(String caller) {
		this.caller = caller;
	}

	public Long getKeyvalue() {
		return keyvalue;
	}

	public void setKeyvalue(Long keyvalue) {
		this.keyvalue = keyvalue;
	}

	public String getNodename() {
		return nodename;
	}

	public void setNodename(String nodename) {
		this.nodename = nodename;
	}

	public Long getNodedealman() {
		return nodedealman;
	}

	public void setNodedealman(Long nodedealman) {
		this.nodedealman = nodedealman;
	}

	public String getNodedealmanname() {
		return nodedealmanname;
	}

	public void setNodedealmanname(String nodedealmanname) {
		this.nodedealmanname = nodedealmanname;
	}

	public Long getProcessid() {
		return processid;
	}

	public void setProcessid(Long processid) {
		this.processid = processid;
	}

	public Long getEnuu() {
		return enuu;
	}

	public void setEnuu(Long enuu) {
		this.enuu = enuu;
	}

	public Long getEmcode() {
		return emcode;
	}

	public void setEmcode(Long emcode) {
		this.emcode = emcode;
	}

	public Long getSourceid() {
		return sourceid;
	}

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

	public String getDealresult() {
		return dealresult;
	}

	public void setDealresult(String dealresult) {
		this.dealresult = dealresult;
	}

	public String getNodedescription() {
		return nodedescription;
	}

	public void setNodedescription(String nodedescription) {
		this.nodedescription = nodedescription;
	}

	public String getStatus() {
		return status;
	}

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

	public String getStatuscode() {
		return statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}

	public Date getSourcedate() {
		return sourcedate;
	}

	public void setSourcedate(Date sourcedate) {
		this.sourcedate = sourcedate;
	}

	public Date getDealdate() {
		return dealdate;
	}

	public void setDealdate(Date dealdate) {
		this.dealdate = dealdate;
	}

	public ApprovalLog(AppLog log) {
		this.status = log.getStatus();
		this.statuscode = log.getStatusCode();
		this.sourceid = log.getSourceid();
		this.sourcedate = log.getSourcedate();
		this.keyvalue = log.getKeyvalue();
		this.caller = log.getCaller();
		this.emcode = log.getEmcode();
		this.enuu = log.getEnuu();
	}

	public ApprovalLog() {

	}
}
