package cn.com.countrygarden.bi.main.model.manager.map;

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

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


/**
 * 管家地图数据缓存
 *
 * @author 李森林
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2018-11-19
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "manager_map_cache_temporary")
public class ManagerMapCacheTemporary implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 区域名称
     */
 	@Column(name="organ_name")
    private String organName;
    /**
     * 区域编号
     */
 	@Column(name="organ_code")
    private String organCode;
    /**
     * 项目统计
     */
 	@Column(name="comm_count")
    private Integer commCount;
    /**
     * 区域统计
     */
 	@Column(name="area_count")
    private BigDecimal areaCount;
    /**
     * 管理户数
     */
 	@Column(name="manager_num_count")
    private BigDecimal managerNumCount;
    /**
     * 平均管理户数
     */
 	@Column(name="manager_num_avg")
    private BigDecimal managerNumAvg;
    /**
     * 管家编制
     */
 	@Column(name="houserkeeper_organization")
    private Integer housekeeperOrganization;
    /**
     * 管家总数
     */
 	@Column(name="houserkeeper_count")
    private Integer housekeeperCount;
    /**
     *
     */
 	@Column(name="area_avg")
    private BigDecimal areaAvg;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date createdDate;
    /**
     * 创建人
     */
 	@Column(name="created_by")
    private String createdBy;
    /**
     * 更新时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedDate;
    /**
     * 更新人
     */
 	@Column(name="updated_by")
    private String updatedBy;
    /**
     * 是否可用
     */
 	@Column(name="flag")
    private Integer flag;
    public ManagerMapCacheTemporary() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
    public void setOrganName(String organName) {
          this.organName = organName;
    }
	
    public String getOrganName() {
          return organName;
    }
    public void setOrganCode(String organCode) {
          this.organCode = organCode;
    }
	
    public String getOrganCode() {
          return organCode;
    }
    public void setCommCount(Integer commCount) {
          this.commCount = commCount;
    }
	
    public Integer getCommCount() {
          return commCount;
    }
    public void setAreaCount(BigDecimal areaCount) {
          this.areaCount = areaCount;
    }
	
    public BigDecimal getAreaCount() {
          return areaCount;
    }
    public void setManagerNumCount(BigDecimal managerNumCount) {
          this.managerNumCount = managerNumCount;
    }
	
    public BigDecimal getManagerNumCount() {
          return managerNumCount;
    }
    public void setManagerNumAvg(BigDecimal managerNumAvg) {
          this.managerNumAvg = managerNumAvg;
    }
	
    public BigDecimal getManagerNumAvg() {
          return managerNumAvg;
    }
    public void setAreaAvg(BigDecimal areaAvg) {
          this.areaAvg = areaAvg;
    }

    public Integer getHousekeeperOrganization() {
        return housekeeperOrganization;
    }

    public void setHousekeeperOrganization(Integer housekeeperOrganization) {
        this.housekeeperOrganization = housekeeperOrganization;
    }

    public Integer getHousekeeperCount() {
        return housekeeperCount;
    }

    public void setHousekeeperCount(Integer housekeeperCount) {
        this.housekeeperCount = housekeeperCount;
    }

    public BigDecimal getAreaAvg() {
          return areaAvg;
    }
    public void setCreatedDate(Date createdDate) {
          this.createdDate = createdDate;
    }
	
    public Date getCreatedDate() {
          return createdDate;
    }
    public void setCreatedBy(String createdBy) {
          this.createdBy = createdBy;
    }
	
    public String getCreatedBy() {
          return createdBy;
    }
    public void setUpdatedDate(Date updatedDate) {
          this.updatedDate = updatedDate;
    }
	
    public Date getUpdatedDate() {
          return updatedDate;
    }
    public void setUpdatedBy(String updatedBy) {
          this.updatedBy = updatedBy;
    }
	
    public String getUpdatedBy() {
          return updatedBy;
    }
    public void setFlag(Integer flag) {
          this.flag = flag;
    }
	
    public Integer getFlag() {
          return flag;
    }
}
