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_type")
public class AfAdviseType implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 编码
     */
 	@Column(name="code")
    private String code;
    /**
     * 名称
     */
 	@Column(name="name")
    private String name;
    /**
     * 备注
     */
 	@Column(name="descs")
    private String descs;
    /**
     * 排序
     */
 	@Column(name="soft")
    private Integer soft;
    /**
     * 是否禁用(0:禁用，1：没有禁用)
     */
 	@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="branch_type_code")
 	private String branchTypeCode;

    public AfAdviseType() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
    public void setCode(String code) {
          this.code = code;
    }
	
    public String getCode() {
          return code;
    }
    public void setName(String name) {
          this.name = name;
    }
	
    public String getName() {
          return name;
    }
    public void setDescs(String descs) {
          this.descs = descs;
    }
	
    public String getDescs() {
          return descs;
    }
    public void setSoft(Integer soft) {
          this.soft = soft;
    }
	
    public Integer getSoft() {
          return soft;
    }
    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 String getBranchTypeCode() {
        return branchTypeCode;
    }

    public void setBranchTypeCode(String branchTypeCode) {
        this.branchTypeCode = branchTypeCode;
    }
}
