package com.uas.platform.b2b.model;

import com.uas.platform.b2b.temporary.model.OfficeTaskInfo;

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

@Entity
@Table(name = "office$task")
public class OfficeTask implements Serializable {

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


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

	/**
	 * 任务编号
	 */
	@Column(name = "ta_code")
	private String code;

	/**
	 * 任务描述
	 */
	@Column(name = "ta_detail")
	private String detail;

	/**
	 * 记录人uu
	 */
	@Column(name = "ta_recordercode")
	private Long recordercode;

	/**
	 * 记录人
	 */
	@Column(name = "ta_recorder")
	private String recorder;

	/**
	 * 执行人
	 */
	@Column(name = "ta_doman")
	private String doman;

	/**
	 * 执行人编号
	 */
	@Column(name = "ta_domancode")
	private Long domancode;
	
	/**
	 * 开始时间
	 */
	@Column(name = "ta_startdate")
	private Date startdate;
	
	/**
	 * 结束时间
	 */
	@Column(name = "ta_enddate")
	private Date enddate;
	
	/**
	 * 状态
	 */
	@Column(name = "ta_status")
	private String status;
	
	/**
	 * 状态码
	 */
	@Column(name = "ta_statuscode")
	private String statuscode;

	/**
	 * 记录日期
	 */
	@Column(name = "ta_recorddate")
	private Date recorddate;

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

	/**
	 * 任务名称
	 */
	@Column(name = "ta_taskname")
	private String taskname;

	public String getTaskname() {
		return taskname;
	}

	public void setTaskname(String taskname) {
		this.taskname = taskname;
	}

	public Long getId() {
		return id;
	}

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

	public String getCode() {
		return code;
	}

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

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Long getRecordercode() {
		return recordercode;
	}

	public void setRecordercode(Long recordercode) {
		this.recordercode = recordercode;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getDoman() {
		return doman;
	}

	public void setDoman(String doman) {
		this.doman = doman;
	}

	public Long getDomancode() {
		return domancode;
	}

	public void setDomancode(Long domancode) {
		this.domancode = domancode;
	}

	public Date getStartdate() {
		return startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEnddate() {
		return enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	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 getRecorddate() {
		return recorddate;
	}

	public void setRecorddate(Date recorddate) {
		this.recorddate = recorddate;
	}

	public Long getUu() {
		return uu;
	}

	public void setUu(Long uu) {
		this.uu = uu;
	}

	public OfficeTask(OfficeTaskInfo info) {
		this.detail = info.getDetail();
		this.enddate = info.getEnddate();
		this.recorddate = info.getRecorddate();
		this.recorder = info.getRecorder();
		this.recordercode = info.getRecordercode();
		this.startdate = info.getStartdate();
		this.status = info.getStatus();
		this.statuscode = info.getStatuscode();
		this.uu = info.getUu();
		this.taskname = info.getTaskname();
	}
	
	public OfficeTask() {
		
	}
}
