package com.palmnest.model.estateserve;

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.Table;

/**
 * 访客预约主订单实体类
 *
 * @author HJY
 */
@Entity
@Table(name = "tb_visitorOrder")
@SuppressWarnings("serial")
public class VisitorOrder implements java.io.Serializable {

	private Integer visitorOrderId;// 主订单ID 自增
	private String  visitorOrderType;// 预约单类型（1 员工填写，2访客填写）
	private Date    visitorOrderCreateTime;// 创建时间
	private String  visitorOrderIsEnabled;// 是否可用1-可用 0-不可用
	private Integer visitorUserId;// 员工ID
	private Integer visitorOrderCount;// 限制填写的人数
	private Integer visitorOrderStatus;// 预约单状态（0 未授权,1 审核通过，2审核不通过）
	private Date    visitorOrderStartTime;// 来访时间
	private Date    visitorOrderEndTime;// 结束时间
	private String  visitorQrCode;// 令令二维码
	private Integer visitorQrCodeId;// 令令二维码ID
	private Integer fromUserId;// 非白名单访问者的id
	private String  visitorToCompany;// 到访公司
	private String  visitorToFloor;// 到访楼层
	private String  visitorReason;// 到访目的(原因)
	private Long    userId;// 访客机登录用户id
	private Integer visitorToOrgId;// 到访项目id
	private String  linglingId;//访客用户唯一识别

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "visitorOrderId", unique = true, nullable = false)
	public Integer getVisitorOrderId() {
		return visitorOrderId;
	}

	public void setVisitorOrderId(Integer visitorOrderId) {
		this.visitorOrderId = visitorOrderId;
	}

	@Column(name = "visitorOrderType")
	public String getVisitorOrderType() {
		return visitorOrderType;
	}

	@Column(name = "visitorOrderCount")
	public Integer getVisitorOrderCount() {
		return visitorOrderCount;
	}

	public void setVisitorOrderCount(Integer visitorOrderCount) {
		this.visitorOrderCount = visitorOrderCount;
	}

	public void setVisitorOrderType(String visitorOrderType) {
		this.visitorOrderType = visitorOrderType;
	}

	@Column(name = "visitorOrderCreateTime")
	public Date getVisitorOrderCreateTime() {
		return visitorOrderCreateTime;
	}

	public void setVisitorOrderCreateTime(Date visitorOrderCreateTime) {
		this.visitorOrderCreateTime = visitorOrderCreateTime;
	}

	@Column(name = "visitorOrderIsEnabled")
	public String getVisitorOrderIsEnabled() {
		return visitorOrderIsEnabled;
	}

	public void setVisitorOrderIsEnabled(String visitorOrderIsEnabled) {
		this.visitorOrderIsEnabled = visitorOrderIsEnabled;
	}

	@Column(name = "visitorUserId")
	public Integer getVisitorUserId() {
		return visitorUserId;
	}

	public void setVisitorUserId(Integer visitorUserId) {
		this.visitorUserId = visitorUserId;
	}

	@Column(name = "visitorOrderStatus")
	public Integer getVisitorOrderStatus() {
		return visitorOrderStatus;
	}

	public void setVisitorOrderStatus(Integer visitorOrderStatus) {
		this.visitorOrderStatus = visitorOrderStatus;
	}

	@Column(name = "visitorOrderStartTime")
	public Date getVisitorOrderStartTime() {
		return visitorOrderStartTime;
	}

	public void setVisitorOrderStartTime(Date visitorOrderStartTime) {
		this.visitorOrderStartTime = visitorOrderStartTime;
	}

	@Column(name = "visitorOrderEndTime")
	public Date getVisitorOrderEndTime() {
		return visitorOrderEndTime;
	}

	public void setVisitorOrderEndTime(Date visitorOrderEndTime) {
		this.visitorOrderEndTime = visitorOrderEndTime;
	}

	public String getVisitorQrCode() {
		return visitorQrCode;
	}

	public void setVisitorQrCode(String visitorQrCode) {
		this.visitorQrCode = visitorQrCode;
	}

	public Integer getVisitorQrCodeId() {
		return visitorQrCodeId;
	}

	public void setVisitorQrCodeId(Integer visitorQrCodeId) {
		this.visitorQrCodeId = visitorQrCodeId;
	}

	public Integer getFromUserId() {
		return fromUserId;
	}

	public void setFromUserId(Integer fromUserId) {
		this.fromUserId = fromUserId;
	}

	public String getVisitorToCompany() {
		return visitorToCompany;
	}

	public void setVisitorToCompany(String visitorToCompany) {
		this.visitorToCompany = visitorToCompany;
	}

	public String getVisitorToFloor() {
		return visitorToFloor;
	}

	public void setVisitorToFloor(String visitorToFloor) {
		this.visitorToFloor = visitorToFloor;
	}

	public String getVisitorReason() {
		return visitorReason;
	}

	public void setVisitorReason(String visitorReason) {
		this.visitorReason = visitorReason;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getVisitorToOrgId() {
		return visitorToOrgId;
	}

	public void setVisitorToOrgId(Integer visitorToOrgId) {
		this.visitorToOrgId = visitorToOrgId;
	}

	public String getLinglingId() {
		return linglingId;
	}

	public void setLinglingId(String linglingId) {
		this.linglingId = linglingId;
	}
	
	
}
