package cn.com.countrygarden.bi.main.model.ck.satisfaction;

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

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

/**
 * <p>
 *   控制塔满意度-项目
 * </p>
 *
 * @author
 * @date 2021-08-06
 * @version V1.0
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "satisfied_control_project")
public class SatisfiedControlProject{

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;

    /**
     * 区域编码
     */
    @Column(name="org_code")
    private String orgCode;
   /**
    * 区域名称
    */
    @Column(name="org_name")
    private String orgName;
   /**
    * 项目编码
    */
   @Column(name="comm_code")
    private String commCode;
   /**
    * 项目名称
    */
    @Column(name="comm_name")
    private String commName;
   /**
    * 样本数
    */
    @Column(name="samples")
    private String samples;
   /**
    * 不满意人数
    */
   @Column(name="dissatisfied")
    private String dissatisfied;
   /**
    * X月是否考核
    */
   @Column(name="is_assessment")
    private String isAssessment;
   /**
    * 满意度
    */
   @Column(name="satisfaction")
    private String satisfaction;
   /**
    * 安防
    */
   @Column(name="security")
    private String security;
   /**
    * 保洁
    */
   @Column(name="cleaning")
    private String cleaning;
   /**
    * 绿化
    */
   @Column(name="green")
    private String green;
   /**
    * 工程
    */
   @Column(name="engineering")
    private String engineering;
   /**
    * 客服
    */
   @Column(name="customer")
    private String customer;
   /**
    * 综合
    */
   @Column(name="comprehensive")
    private String comprehensive;
   /**
    * 调研人数
    */
   @Column(name="researchers")
    private Integer researchers;
   /**
    * 月份
    */
   @Column(name="yearMonth")
    private String yearMonth;
   /**
    * 状态 1 可用 0不可用
    */
   @Column(name="status")
    private Integer status;
    /**
     * 创建人
     */
    @Column(name="create_by")
    private String createBy;
    /**
     * 创建人姓名
     */
    @Column(name="create_name")
    private String createName;
   /**
    * 创建时间
    */
   @Column(name="create_time")
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date createTime;
   /**
    * 修改时间
    */
   @Column(name="update_time")
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date updateTime;
   /**
    * 修改人姓名
    */
   @Column(name="update_name")
    private String updateName;
    /**
     * 修改人
     */
    @Column(name="update_by")
    private String updateBy;

    /**
     * 是否已编辑 1已编辑 0未编辑
     */
    @Column(name="is_editor")
    private Integer isEditor;

    @Transient
    private String commStr;

    @Transient
    private List<String> commCodeList;

    @Transient
    private String orgCodeStr;

    @Transient
    private List<String> orgCodeList;


    @Transient
    private String monthStr;

    @Transient
    private List<String> yueList;

    @Transient
    private String key;

    @Transient
    private String value;

    @Transient
    private String yearNian;

    @Transient
    private String nouchYue;
}
