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_feedback")
public class AfAdviseFeedback implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 建言类型标识
     */
 	@Column(name="advise_type_id")
    private Integer adviseTypeId;
    /**
     * 建言类型名称
     */
 	@Column(name="advise_type_name")
    private String adviseTypeName;
    /**
     * 建言标题
     */
 	@Column(name="title")
    private String title;
    /**
     * 建言内容
     */
 	@Column(name="content")
    private String content;
    /**
     * 是否私密
     */
 	@Column(name="is_private")
    private Integer isPrivate;
    /**
     * 状态(0保存1发布2进行中)
     */
 	@Column(name="state")
    private Integer state;
    /**
     * 上报时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date reportTime;
    /**
     * 是否逾期
     */
 	@Column(name="is_timeout")
    private Integer isTimeout;
    /**
     * 周期所属
     */
 	@Column(name="schedule")
    private String schedule;
    /**
     * 分配人标识
     */
 	@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;


    /**
     * 所属项目编号
     */
 	@Column(name="comm_id")
    private String commId;
    /**
     * 所属项目名称
     */
 	@Column(name="comm_name")
    private String commName;
    /**
     * 所属区域名称
     */
 	@Column(name="organ_name")
    private String organName;
    /**
     * 所属区域编号
     */
 	@Column(name="organ_code")
    private String organCode;
    /**
     * 所属类型（1.项目2.区域）
     */
 	@Column(name="range_type")
    private Integer rangeType;
    /**
     * 可用
     */
 	@Column(name="enable")
    private Integer enable;
    /**
     * 创建日期
     */
    @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="version")
    private Integer version;
    /**
     * 是否删除
     */
 	@Column(name="is_deleted")
    private Integer isDeleted;
    /**
     * 分支关联
     */
 	@Column(name="branch_type_code")
    private String branchTypeCode;
    public AfAdviseFeedback() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
  
    public Integer getAdviseTypeId() {
		return adviseTypeId;
	}
	public void setAdviseTypeId(Integer adviseTypeId) {
		this.adviseTypeId = adviseTypeId;
	}

    public String getAdviseTypeName() {
		return adviseTypeName;
	}
	public void setAdviseTypeName(String adviseTypeName) {
		this.adviseTypeName = adviseTypeName;
	}
	public void setTitle(String title) {
          this.title = title;
    }
	
    public String getTitle() {
          return title;
    }
    public void setContent(String content) {
          this.content = content;
    }
	
    public String getContent() {
          return content;
    }
    public void setIsPrivate(Integer isPrivate) {
          this.isPrivate = isPrivate;
    }
	
    public Integer getIsPrivate() {
          return isPrivate;
    }
    public void setState(Integer state) {
          this.state = state;
    }
	
    public Integer getState() {
          return state;
    }
    public void setReportTime(Date reportTime) {
          this.reportTime = reportTime;
    }
	
    public Date getReportTime() {
          return reportTime;
    }
    public void setIsTimeout(Integer isTimeout) {
          this.isTimeout = isTimeout;
    }
	
    public Integer getIsTimeout() {
          return isTimeout;
    }
    public void setSchedule(String schedule) {
          this.schedule = schedule;
    }
	
    public String getSchedule() {
          return schedule;
    }
    public void setDistributionUserCode(String distributionUserCode) {
          this.distributionUserCode = distributionUserCode;
    }
	
    public String getDistributionUserCode() {
          return distributionUserCode;
    }
    public void setDistributionUserName(String distributionUserName) {
          this.distributionUserName = distributionUserName;
    }
	
    public String getDistributionUserName() {
          return distributionUserName;
    }
    public void setDistributionTime(Date distributionTime) {
          this.distributionTime = distributionTime;
    }
	
    public Date getDistributionTime() {
          return distributionTime;
    }
    public Integer getDistributionAdviseTypeId() {
		return distributionAdviseTypeId;
	}
	public void setDistributionAdviseTypeId(Integer distributionAdviseTypeId) {
		this.distributionAdviseTypeId = distributionAdviseTypeId;
	}

    public void setEnable(Integer enable) {
          this.enable = enable;
    }
	
    public Integer getEnable() {
          return enable;
    }
    public void setCreateTime(Date createTime) {
          this.createTime = createTime;
    }
	
    public Date getCreateTime() {
          return createTime;
    }
    public void setCreateBy(String createBy) {
          this.createBy = createBy;
    }
	
    public String getCreateBy() {
          return createBy;
    }
    public void setUpdateTime(Date updateTime) {
          this.updateTime = updateTime;
    }
	
    public Date getUpdateTime() {
          return updateTime;
    }
    public void setUpdateBy(String updateBy) {
          this.updateBy = updateBy;
    }
	
    public String getUpdateBy() {
          return updateBy;
    }
    public void setVersion(Integer version) {
          this.version = version;
    }
	
    public Integer getVersion() {
          return version;
    }
    public void setIsDeleted(Integer isDeleted) {
          this.isDeleted = isDeleted;
    }
	
    public Integer getIsDeleted() {
          return isDeleted;
    }
    public void setBranchTypeCode(String branchTypeCode) {
          this.branchTypeCode = branchTypeCode;
    }
	
    public String getBranchTypeCode() {
          return branchTypeCode;
    }

    public String getCommId() {
        return commId;
    }

    public void setCommId(String commId) {
        this.commId = commId;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getOrganCode() {
        return organCode;
    }

    public void setOrganCode(String organCode) {
        this.organCode = organCode;
    }

    public Integer getRangeType() {
        return rangeType;
    }

    public void setRangeType(Integer rangeType) {
        this.rangeType = rangeType;
    }
}
