package com.mortals.xhx.module.window.model;
import java.math.BigDecimal;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.vo.WindowWorkmanPerformDetailVo;
import lombok.Data;
/**
* 窗口人员考核汇总明细实体对象
*
* @author zxfei
* @date 2024-01-17
*/
@Data
public class WindowWorkmanPerformDetailEntity extends WindowWorkmanPerformDetailVo {
    private static final long serialVersionUID = 1L;

    /**
    * 人员考核汇总表主键
    */
    private Long performId;
    /**
    * 工作人员id
    */
    private Long staffId;
    /**
    * 工作人员名称
    */
    private String staffName;
    /**
    * 工作纪律得分
    */
    private BigDecimal discipline;
    /**
    * 服务规范得分
    */
    private BigDecimal specification;
    /**
    * 综合管理得分
    */
    private BigDecimal management;
    /**
    * 群众评议得分
    */
    private BigDecimal evaluation;
    /**
    * 工作效能得分
    */
    private BigDecimal efficiency;
    /**
    * 加分
    */
    private BigDecimal bonusScore;
    /**
    * 合计得分
    */
    private BigDecimal sumScore;
    /**
    * 考核等级1好2较好3一般4较差
    */
    private Integer examineLevel;
    /**
    * 备注
    */
    private String remark;
    @Override
    public int hashCode() {
         return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof WindowWorkmanPerformDetailEntity) {
            WindowWorkmanPerformDetailEntity tmp = (WindowWorkmanPerformDetailEntity) obj;
            if (this.getId() == tmp.getId()) {
                 return true;
            }
        }
        return false;
    }

    public void initAttrValue(){
            this.performId = null;
            this.staffId = null;
            this.staffName = "";
            this.discipline = BigDecimal.ZERO;
            this.specification = BigDecimal.ZERO;
            this.management = BigDecimal.ZERO;
            this.evaluation = BigDecimal.ZERO;
            this.efficiency = BigDecimal.ZERO;
            this.bonusScore = BigDecimal.ZERO;
            this.sumScore = BigDecimal.ZERO;
            this.examineLevel = 0;
            this.remark = "";
    }
}