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-19
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "af_advise_notice")
public class AfAdviseNotice implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 建言标识
     */
 	@Column(name="advise_feedback_id")
    private Integer adviseFeedbackId;
    /**
     * 状态（0保存1发布2撤回）
     */
 	@Column(name="state")
    private Integer state;
    /**
     * 建言类型标识
     */
 	@Column(name="advise_type_id")
    private String adviseTypeId;
    /**
     * 建言类型名称
     */
 	@Column(name="advise_type_name")
    private String adviseTypeName;
    /**
     * 建言标题
     */
 	@Column(name="title")
    private String title;
    /**
     * 建言内容
     */
 	@Column(name="content")
    private String content;
    /**
     * 上报时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date reportTime;
    /**
     * 所属区域名称
     */
 	@Column(name="organ_name")
    private String organName;
    /**
     * 所属区域编号
     */
    @Column(name="organ_code")
    private String organCode;
    /**
     * 建言上报人标识
     */
 	@Column(name="report_user_code")
    private String reportUserCode;
    /**
     * 发布日期
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date publishTime;
    /**
     * 发布人名称
     */
 	@Column(name="publish_user_name")
    private String publishUserName;
    /**
     * 数据可见类型（0全部可见;1本区域可见;2全部区域可见;3总部可见）
     */
 	@Column(name="visible_type")
    private Integer visibleType;
    /**
     * 发布人标识
     */
 	@Column(name="publish_user_code")
    private String publishUserCode;
    /**
     * 建言上报人名称
     */
 	@Column(name="report_user_name")
    private String reportUserName;
    /**
     * 分支关联
     */
 	@Column(name="branch_type_code")
    private String branchTypeCode;
    public AfAdviseNotice() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
    public void setAdviseFeedbackId(Integer adviseFeedbackId) {
          this.adviseFeedbackId = adviseFeedbackId;
    }
	
    public Integer getAdviseFeedbackId() {
          return adviseFeedbackId;
    }
    public void setState(Integer state) {
          this.state = state;
    }
	
    public Integer getState() {
          return state;
    }
    public void setAdviseTypeId(String adviseTypeId) {
          this.adviseTypeId = adviseTypeId;
    }
	
    public String getAdviseTypeId() {
          return adviseTypeId;
    }
    public void setAdviseTypeName(String adviseTypeName) {
          this.adviseTypeName = adviseTypeName;
    }
	
    public String getAdviseTypeName() {
          return 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 setReportTime(Date reportTime) {
          this.reportTime = reportTime;
    }
	
    public Date getReportTime() {
          return reportTime;
    }

    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 void setReportUserCode(String reportUserCode) {
          this.reportUserCode = reportUserCode;
    }
	
    public String getReportUserCode() {
          return reportUserCode;
    }
    public void setPublishTime(Date publishTime) {
          this.publishTime = publishTime;
    }
	
    public Date getPublishTime() {
          return publishTime;
    }
    public void setPublishUserName(String publishUserName) {
          this.publishUserName = publishUserName;
    }
	
    public String getPublishUserName() {
          return publishUserName;
    }
    public void setVisibleType(Integer visibleType) {
          this.visibleType = visibleType;
    }
	
    public Integer getVisibleType() {
          return visibleType;
    }
    public void setPublishUserCode(String publishUserCode) {
          this.publishUserCode = publishUserCode;
    }
	
    public String getPublishUserCode() {
          return publishUserCode;
    }
    public void setReportUserName(String reportUserName) {
          this.reportUserName = reportUserName;
    }
	
    public String getReportUserName() {
          return reportUserName;
    }
    public void setBranchTypeCode(String branchTypeCode) {
          this.branchTypeCode = branchTypeCode;
    }
	
    public String getBranchTypeCode() {
          return branchTypeCode;
    }
}
