package com.mortals.xhx.module.perform.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.perform.model.vo.PerformDeptConfDetailVo;
import lombok.Data;
/**
* 部门考核内容详细信息实体对象
*
* @author zxfei
* @date 2023-05-16
*/
@Data
public class PerformDeptConfDetailEntity extends PerformDeptConfDetailVo {
    private static final long serialVersionUID = 1L;

    /**
    * 自动配置id
    */
    private Long deptConfId;
    /**
    * 绩效规则id
    */
    private Long ruleId;
    /**
    * 规则简称
    */
    private String ruleName;
    /**
    * 部门id
    */
    private Long deptId;
    /**
    * 部门名称
    */
    private String deptName;
    /**
    * 分类名称
    */
    private String categoryName;
    /**
    * 规则类型(1.考勤绩效,2.评价绩效指标,3.办件绩效指标,4.效能绩效指标,5.其它绩效指标)
    */
    private Integer type;
    /**
    * 备注
    */
    private String remark;
    /**
    * 是否启用规则(0.否,1.是)
    */
    private Integer enable;
    @Override
    public int hashCode() {
         return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof PerformDeptConfDetailEntity) {
            PerformDeptConfDetailEntity tmp = (PerformDeptConfDetailEntity) obj;
            if (this.getId() == tmp.getId()) {
                 return true;
            }
        }
        return false;
    }

    public void initAttrValue(){

            this.deptConfId = -1L;

            this.ruleId = -1L;

            this.ruleName = "";

            this.deptId = -1L;

            this.deptName = "";

            this.categoryName = "";

            this.type = 1;

            this.remark = "";

            this.enable = 1;
    }
}