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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

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


/**
 * 建言处理节点
 *
 * @author 木木子
 * @email 944528607@qq.com
 * @url 
 * @date 2019-04-15
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "af_advise_process")
public class AfAdviseProcess implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 建言标识关联
     */
 	@Column(name="advise_feedback_id")
    private Integer adviseFeedbackId;
    /**
     * 分配人标识
     */
 	@Column(name="distribution_user_code")
    private String distributionUserCode;
    /**
     * 分配人名称
     */
 	@Column(name="distribution_user_name")
    private String distributionUserName;
    /**
     * 分配时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date distributionTime;
    /**
     * 分配时间
     */
 	@Column(name="distribution_advise_type_id")
    private Integer distributionAdviseTypeId;
    /**
     * 回复时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date answerTime;
    /**
     * 节点类型（0项目1区域2总部3类型4私密）
     */
 	@Column(name="process_type")
    private Integer processType;
    /**
     * 处理内容
     */
 	@Column(name="content")
    private String content;
    /**
     * 处理人编号
     */
 	@Column(name="user_code")
    private String userCode;
    /**
     * 处理人姓名
     */
 	@Column(name="user_name")
    private String userName;
    /**
     * 状态（0保存1已发布）
     */
 	@Column(name="state")
    private Integer state;
    /**
     * 可用(0:否，1：是)
     */
 	@Column(name="enable")
    private Integer enable;

	/**
	 * 是否逾期(0:否，1：是)
	 */
	@Column(name="is_timeout")
 	private Integer isTimeout;
    /**
     * 创建日期
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建人
     */
 	@Column(name="create_by")
    private String createBy;
    /**
     * 修改日期
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改人
     */
 	@Column(name="update_by")
    private String updateBy;
    /**
     * 分支关联
     */
 	@Column(name="branch_type_code")
    private String branchTypeCode;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getAdviseFeedbackId() {
		return adviseFeedbackId;
	}
	public void setAdviseFeedbackId(Integer adviseFeedbackId) {
		this.adviseFeedbackId = adviseFeedbackId;
	}
	public String getDistributionUserCode() {
		return distributionUserCode;
	}
	public void setDistributionUserCode(String distributionUserCode) {
		this.distributionUserCode = distributionUserCode;
	}
	public String getDistributionUserName() {
		return distributionUserName;
	}
	public void setDistributionUserName(String distributionUserName) {
		this.distributionUserName = distributionUserName;
	}
	public Date getDistributionTime() {
		return distributionTime;
	}
	public void setDistributionTime(Date distributionTime) {
		this.distributionTime = distributionTime;
	}
	public Date getAnswerTime() {
		return answerTime;
	}
	public void setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
	}
	public Integer getProcessType() {
		return processType;
	}
	public void setProcessType(Integer processType) {
		this.processType = processType;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getEnable() {
		return enable;
	}
	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getIsTimeout() {
		return isTimeout;
	}
	public void setIsTimeout(Integer isTimeout) {
		this.isTimeout = isTimeout;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public String getBranchTypeCode() {
		return branchTypeCode;
	}
	public void setBranchTypeCode(String branchTypeCode) {
		this.branchTypeCode = branchTypeCode;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getDistributionAdviseTypeId() {
		return distributionAdviseTypeId;
	}
	public void setDistributionAdviseTypeId(Integer distributionAdviseTypeId) {
		this.distributionAdviseTypeId = distributionAdviseTypeId;
	}

}
