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$feeplease")
public class FeePlease implements Serializable {

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

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

	/**
	 * 编号
	 */
	@Column(name = "fp_code")
	private String fp_code;

	/**
	 * 录入人
	 */
	@Column(name = "fp_people2")
	private String fp_people2;
	
	/**
	 * 录入时间
	 */
	@Column(name = "fp_recorddate")
	private Date fp_recorddate;

	/**
	 * 开始时间
	 */
	@Column(name = "fp_prestartdate")
	private Date fp_prestartdate;

	/**
	 * 结束时间
	 */
	@Column(name = "fp_preenddate")
	private Date fp_preenddate;

	/**
	 * 事由
	 */
	@Column(name = "fp_v3")
	private String fp_v3;

	/**
	 * 审核人
	 */
	@Column(name = "fp_auditman")
	private String fp_auditman;

	/**
	 * 审核时间
	 */
	@Column(name = "fp_auditdate")
	private Date fp_auditdate;

	/**
	 * 状态码
	 */
	@Column(name = "fp_statuscode")
	private String fp_statuscode;

	/**
	 * 状态
	 */
	@Column(name = "fp_status")
	private String fp_status;

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

	/**
	 * 外勤明细
	 */
	@OneToMany(mappedBy = "feePlease", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE,
			CascadeType.MERGE }, fetch = FetchType.EAGER)
	@OrderBy("fpd_id")
	private Set<FeePleaseDetail> feePleaseDetails;

	/**
	 * 人员编号
	 */
	@Column(name = "fp_emcode")
	private Long emcode;

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

	public Long getFp_id() {
		return fp_id;
	}

	public void setFp_id(Long fp_id) {
		this.fp_id = fp_id;
	}

	public String getFp_code() {
		return fp_code;
	}

	public void setFp_code(String fp_code) {
		this.fp_code = fp_code;
	}

	public String getFp_people2() {
		return fp_people2;
	}

	public void setFp_people2(String fp_people2) {
		this.fp_people2 = fp_people2;
	}

	public Date getFp_recorddate() {
		return fp_recorddate;
	}

	public void setFp_recorddate(Date fp_recorddate) {
		this.fp_recorddate = fp_recorddate;
	}

	public Date getFp_prestartdate() {
		return fp_prestartdate;
	}

	public void setFp_prestartdate(Date fp_prestartdate) {
		this.fp_prestartdate = fp_prestartdate;
	}

	public Date getFp_preenddate() {
		return fp_preenddate;
	}

	public void setFp_preenddate(Date fp_preenddate) {
		this.fp_preenddate = fp_preenddate;
	}

	public String getFp_v3() {
		return fp_v3;
	}

	public void setFp_v3(String fp_v3) {
		this.fp_v3 = fp_v3;
	}

	public String getFp_auditman() {
		return fp_auditman;
	}

	public void setFp_auditman(String fp_auditman) {
		this.fp_auditman = fp_auditman;
	}

	public Date getFp_auditdate() {
		return fp_auditdate;
	}

	public void setFp_auditdate(Date fp_auditdate) {
		this.fp_auditdate = fp_auditdate;
	}

	public String getFp_statuscode() {
		return fp_statuscode;
	}

	public void setFp_statuscode(String fp_statuscode) {
		this.fp_statuscode = fp_statuscode;
	}

	public String getFp_status() {
		return fp_status;
	}

	public void setFp_status(String fp_status) {
		this.fp_status = fp_status;
	}

	public Long getEnuu() {
		return enuu;
	}

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

	public Set<FeePleaseDetail> getFeePleaseDetails() {
		return feePleaseDetails;
	}

	public void setFeePleaseDetails(Set<FeePleaseDetail> feePleaseDetails) {
		this.feePleaseDetails = feePleaseDetails;
	}

	public Long getEmcode() {
		return emcode;
	}

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

	public Date getOrderdate() {
		return orderdate;
	}

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

}
