package cn.com.countrygarden.bi.main.model.review;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Date;


/**
 * 被调查人
 *
 * @author 汤婷
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2018-06-25
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "review_investigated")
public class ReviewInvestigated implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 问卷ID
     */
 	@Column(name="questionnaire_id")
    private Integer questionnaireId;
    /**
     * 被调查人姓名
     */
 	@Column(name="NAME")
    private String name;
    /**
     * 被调查人手机号码
     */
 	@Column(name="tel")
    private String tel;
    /**
     * 被调查人工号
     */
 	@Column(name="job_number")
    private String jobNumber;
    /**
     * 是否可重复提交（1.是，0否）
     */
 	@Column(name="is_repeat")
    private Integer isRepeat;
    /**
     * 是否结束调查（0:false，1:true）
     */
 	@Column(name="flag")
    private Integer flag;
    /**
     * 短信模板
     */
 	@Column(name="sms_template")
    private String smsTemplate;
    /**
     * 创建人
     */
 	@Column(name="create_by")
    private String createBy;
 	/**
     * 创建姓名
     */
 	@Transient
    private String createdName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改人
     */
 	@Column(name="update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    
    @Column(name="personnelassessment_id")
    private Integer personnelassessmentId;
    public ReviewInvestigated() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
    public void setQuestionnaireId(Integer questionnaireId) {
          this.questionnaireId = questionnaireId;
    }
	
    public Integer getQuestionnaireId() {
          return questionnaireId;
    }
    public void setName(String name) {
          this.name = name;
    }
	
    public String getName() {
          return name;
    }
    public void setTel(String tel) {
          this.tel = tel;
    }
	
    public String getTel() {
          return tel;
    }
    public void setJobNumber(String jobNumber) {
          this.jobNumber = jobNumber;
    }
	
    public String getJobNumber() {
          return jobNumber;
    }
    public void setIsRepeat(Integer isRepeat) {
          this.isRepeat = isRepeat;
    }
	
    public Integer getIsRepeat() {
          return isRepeat;
    }
    public void setFlag(Integer flag) {
          this.flag = flag;
    }
	
    public Integer getFlag() {
          return flag;
    }
    public void setSmsTemplate(String smsTemplate) {
          this.smsTemplate = smsTemplate;
    }
	
    public String getSmsTemplate() {
          return smsTemplate;
    }
    public void setCreateBy(String createBy) {
          this.createBy = createBy;
    }
	
    public String getCreateBy() {
          return createBy;
    }
    public void setCreateTime(Date createTime) {
    	
          this.createTime = createTime;
    }
	
    public Date getCreateTime() {
    	if(this.createTime==null) {
      		 return new Date();
      	}
          return createTime;
    }
    public void setUpdateBy(String updateBy) {
    	 this.updateBy = updateBy;
         
    }
	
    public String getUpdateBy() {
    	
    	
          return updateBy;
    }
    public void setUpdateTime(Date updateTime) {
    	
    	
          this.updateTime = updateTime;
    }
	
    public Date getUpdateTime() {
          return updateTime;
    }
	public String getCreatedName() {
		return createdName;
	}
	public void setCreatedName(String createdName) {
		this.createdName = createdName;
	}
	public Integer getPersonnelassessmentId() {
		return personnelassessmentId;
	}
	public void setPersonnelassessmentId(Integer personnelassessmentId) {
		this.personnelassessmentId = personnelassessmentId;
	}
    
}
