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

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

/**
 * 加班申请单
 * 
 * @author hejq
 * @time 创建时间：2017年2月23日
 */
@Entity
@Table(name = "mobile$workovertime")
public class WorkOvertime implements Serializable {

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

	/**
	 * id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "wo_id")
	private Long wo_id;
	
	/**
	 * 编号
	 */
	@Column(name = "wo_code")
	private String wo_code;
	
	/**
	 * 人员编号
	 */
	@Column(name = "wo_emcode")
	private Long emcode;
	
	/**
	 * 记录人
	 */
	@Column(name = "wo_recorder")
	private String wo_recorder;
	
	/**
	 * 审核人
	 */
	@Column(name = "wo_auditer")
	private String wo_auditer;
	
	/**
	 * 审核时间
	 */
	@Column(name = "wo_auditdate")
	private Date wo_auditdate;
	
	/**
	 * 目的任务
	 */
	@Column(name = "wo_worktask")
	private String wo_worktask;
	
	/**
	 * 状态
	 */
	@Column(name = "wo_status")
	private String wo_status;
	
	/**
	 * 状态码
	 */
	@Column(name = "wo_statuscode")
	private String wo_statuscode;
	
	/**
	 * 企业uu
	 */
	@Column(name = "wo_enuu")
	private Long enuu;
	
	/**
	 * 录入时间
	 */
	@Column(name = "wo_date")
	private Date wo_date;

	/**
	 * 排序时间
	 */
	@Column(name = "wo_orderdate")
	private Date orderdate;

	/**
	 * 加班明细
	 */
	@OneToMany(mappedBy = "workOvertime", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE,
			CascadeType.MERGE }, fetch = FetchType.EAGER)
	@OrderBy("wod_id")
	private Set<WorkOvertimeDet> workOvertimeDet;

	public Long getWo_id() {
		return wo_id;
	}

	public void setWo_id(Long wo_id) {
		this.wo_id = wo_id;
	}

	public String getWo_code() {
		return wo_code;
	}

	public void setWo_code(String wo_code) {
		this.wo_code = wo_code;
	}

	public Long getEmcode() {
		return emcode;
	}

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

	public String getWo_recorder() {
		return wo_recorder;
	}

	public void setWo_recorder(String wo_recorder) {
		this.wo_recorder = wo_recorder;
	}

	public String getWo_auditer() {
		return wo_auditer;
	}

	public void setWo_auditer(String wo_auditer) {
		this.wo_auditer = wo_auditer;
	}

	public Date getWo_auditdate() {
		return wo_auditdate;
	}

	public void setWo_auditdate(Date wo_auditdate) {
		this.wo_auditdate = wo_auditdate;
	}

	public String getWo_worktask() {
		return wo_worktask;
	}

	public void setWo_worktask(String wo_worktask) {
		this.wo_worktask = wo_worktask;
	}

	public String getWo_status() {
		return wo_status;
	}

	public void setWo_status(String wo_status) {
		this.wo_status = wo_status;
	}

	public String getWo_statuscode() {
		return wo_statuscode;
	}

	public void setWo_statuscode(String wo_statuscode) {
		this.wo_statuscode = wo_statuscode;
	}

	public Long getEnuu() {
		return enuu;
	}

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

	public Set<WorkOvertimeDet> getWorkovertimedet() {
		return workOvertimeDet;
	}

	public void setWorkovertimedet(Set<WorkOvertimeDet> workOvertimeDet) {
		this.workOvertimeDet = workOvertimeDet;
	}

	public Date getWo_date() {
		return wo_date;
	}

	public void setWo_date(Date wo_date) {
		this.wo_date = wo_date;
	}

	public Date getOrderdate() {
		return orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}



}
