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

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

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

/**
 * 片区负责人管理表
 *
 * @author 吕伟峰
 * @email
 * @url
 * @date 2020-02-03
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "rd_district_principal")
public class RdDistrictPrincipal {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Integer id;
    /**
     * 区域编号
     */
    @Column(name="region_code")
    private String regionCode;
    /**
     * 区域名称
     */
    @Column(name="region_name")
    private String regionName;
    /**
     * 片区编号
     */
    @Column(name="district_code")
    private String districtCode;
    /**
     * 负责人编号
     */
    @Column(name="principal_code")
    private String principalCode;
    /**
     * 负责人账号
     */
    @Column(name="principal_login")
    private String principalLogin;
    /**
     * 负责人名称
     */
    @Column(name="principal_name")
    private String principalName;
    /**
     * 授权时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    @Column(name="authorization_time")
    private Date authorizationTime;
    /**
     * 授权人
     */
    @Column(name="authorization_name")
    private String authorizationName;
    /**
     * 可用
     */
    @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;
    /**
     * 创建人姓名
     */
    @Column(name="create_name")
    private String createName;
    /**
     * 修改日期
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改人
     */
    @Column(name="update_by")
    private String updateBy;

    public RdDistrictPrincipal() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    public String getPrincipalCode() {
        return principalCode;
    }

    public void setPrincipalCode(String principalCode) {
        this.principalCode = principalCode;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public Date getAuthorizationTime() {
        return authorizationTime;
    }

    public void setAuthorizationTime(Date authorizationTime) {
        this.authorizationTime = authorizationTime;
    }

    public String getAuthorizationName() {
        return authorizationName;
    }

    public void setAuthorizationName(String authorizationName) {
        this.authorizationName = authorizationName;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    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 String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    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 getPrincipalLogin() {
        return principalLogin;
    }

    public void setPrincipalLogin(String principalLogin) {
        this.principalLogin = principalLogin;
    }
}
