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.PerformStaffConfDetailVo;
import lombok.Data;
/**
* 人员考核内容详细信息实体对象
*
* @author zxfei
* @date 2023-05-16
*/
@Data
public class PerformStaffConfDetailEntity extends PerformStaffConfDetailVo {
    private static final long serialVersionUID = 1L;

    /**
    * 人员自动考核配置id
    */
    private Long staffConfId;
    /**
    * 绩效规则id
    */
    private Long ruleId;
    /**
    * 规则简称
    */
    private String ruleName;
    /**
    * 部门id
    */
    private Long staffId;
    /**
    * 部门名称
    */
    private String staffName;
    /**
    * 分类名称
    */
    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 PerformStaffConfDetailEntity) {
            PerformStaffConfDetailEntity tmp = (PerformStaffConfDetailEntity) obj;
            if (this.getId() == tmp.getId()) {
                 return true;
            }
        }
        return false;
    }

    public void initAttrValue(){

            this.staffConfId = -1L;

            this.ruleId = -1L;

            this.ruleName = "";

            this.staffId = -1L;

            this.staffName = "";

            this.categoryName = "";

            this.type = 1;

            this.remark = "";

            this.enable = 1;
    }
}