package org.ccpit.business.coApplication;

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.OneToOne;
import javax.persistence.Table;

import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;


@Entity
@Where(clause = "deleted='false'")
@Table(name = "sfzx_CoApplicationInfos")
public class CoApplicationInfo {

	public long id;
	/**
	 * 贸促会编码
	 */
	public String ccpitCode;
	/**
	 * 企业注册号
	 */
	public String registNumber;
	/**
	 * 公司名称
	 */
	public String companyName;
	/**
	 * 联系人
	 */
	public String linkMan;
	/**
	 * 联系电话
	 */
	public String linkPhone;
	/**
	 * 邮箱
	 */
	public String email;
	/**
	 * 申请原因
	 */
	public String reason;
	/**
	 * 创建人
	 */
	public User creator;
	/**
	 * 创建时间
	 */
	public Date createTime;
	/**
	 * 修改人
	 */
	public User modifyBy;
	/**
	 * 修改时间
	 */
	public Date modifyTime;
	/**
	 * 逻辑删除
	 */
	public boolean deleted;
	/**
	 * 状态 初始状态为 0 ，1为未通过，2为通过
	 */
	public int infotatus;
	/**
	 * 点击量
	 */
	public int clickVolume;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

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

	
	public String getCcpitCode() {
		return ccpitCode;
	}

	public void setCcpitCode(String ccpitCode) {
		this.ccpitCode = ccpitCode;
	}

	public String getRegistNumber() {
		return registNumber;
	}

	public void setRegistNumber(String registNumber) {
		this.registNumber = registNumber;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getLinkPhone() {
		return linkPhone;
	}

	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@OneToOne
	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@OneToOne
	public User getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(User modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	@Column(columnDefinition = "INT default 0")
	public int getInfotatus() {
		return infotatus;
	}

	public void setInfotatus(int infotatus) {
		this.infotatus = infotatus;
	}

	public int getClickVolume() {
		return clickVolume;
	}

	public void setClickVolume(int clickVolume) {
		this.clickVolume = clickVolume;
	}


}
