package com.mortals.xhx.module.perform.model;
import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
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.PerformAttendAppealVo;
import com.mortals.xhx.module.perform.model.PerformAttendAppealFilesEntity;
import lombok.Data;
/**
 * 绩效记录申诉信息实体对象
 *
 * @author zxfei
 * @date 2023-07-15
 */
@Data
public class PerformAttendAppealEntity extends PerformAttendAppealVo {
    private static final long serialVersionUID = 1L;

    /**
     * 核查记录Id
     */
    private Long checkRecordId;
    /**
     * 员工ID
     */
    private Long staffId;
    /**
     * 员工姓名
     */
    private String staffName;
    /**
     * 工号
     */
    private String workNum;
    /**
     * 所属部门
     */
    private Long deptId;
    /**
     * 所属部门名称
     */
    private String deptName;
    /**
     * 所属考勤组ID
     */
    private Long attendanceGroupId;
    /**
     * 所属考勤组名称
     */
    private String attendanceGroupName;
    /**
     * 扣分时间
     */
    private Date attendanceDate;
    /**
     * 绩效规则id
     */
    private Long ruleId;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 扣分方式(1.系统自动,2.人工添加,3.大厅巡查)
     */
    private Integer subMethod;
    /**
     * 增减类型(1.增加,2.扣除)
     */
    private Integer subAddType;
    /**
     * 扣分或增加分值
     */
    private BigDecimal score;
    /**
     * 上下班时间
     */
    private String goOffTimeStr;
    /**
     * 异常时间
     */
    private Date errorTime;
    /**
     * 实际打卡时间
     */
    private Date actualAttendTime;
    /**
     * 异常处理结果
     */
    private String errorResult;
    /**
     * 核查人员
     */
    @Excel(name = "核查人员")
    private String checkPerson;
    /**
     * 核查时间
     */
    private Date checkTime;
    /**
     * 核查说明
     */
    @Excel(name = "核查说明")
    private String checkDesc;
    /**
     * 核查结果
     */
    @Excel(name = "核查结果")
    private String checkResult;
    /**
     * 处理状态(1.未处理,2.已处理)
     */
    private Integer processStatus;
    /**
     * 申诉说明
     */
    @Excel(name = "申诉说明")
    private String appealDesc;
    /**
     * 申诉时间
     */
    private Date appealTime;
    /**
     * 申诉结果(1.通过,2.不通过)
     */
    private Integer appealResult;
    /**
     * 说明
     */
    @Excel(name = "说明")
    private String remark;
    /**
     * 违规类型，
     */
    private String violationType;
    /**
     * 评价结果(1.非常不满意,2.差评)
     */
    private Integer reviewResult;
    /**
     * 评价时间
     */
    private Date reviewTime;
    /**
     * 评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它)
     */
    @Excel(name = "评价来源", readConverterExp = "评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它)")
    private String reviewSource;
    /**
     * 评价设备
     */
    private String reviewDevice;
    /**
     * 投诉标题
     */
    @Excel(name = "投诉标题")
    private String complainTitle;
    /**
     * 投诉内容
     */
    @Excel(name = "投诉内容")
    private String complainContent;
    /**
     * 投诉人真实姓名
     */
    private String complainRealName;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contact;
    /**
     * 投诉时间
     */
    private Date complainTime;
    /**
     * 投诉来源
     */
    private String complainSource;
    /**
     * 投诉设备
     */
    private String complainDevice;
    /**
     * 办件编码
     */
    @Excel(name = "办件编码")
    private String goworkCode;
    /**
     * 办件所属部门
     */
    @Excel(name = "办件所属部门")
    private String goworkDepts;
    /**
     * 事项名称
     */
    @Excel(name = "事项名称")
    private String matterlName;
    /**
     * 办理时间
     */
    @Excel(name = "办理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goworkTime;
    /**
     * 违规类型(1.脱岗,2.离岗,3.玩手机,4.睡觉)
     */
    @Excel(name = "违规类型", readConverterExp = "1=脱岗,2.离岗,3.玩手机,4.睡觉")
    private Integer irregularType;
    /**
     * 发生时间
     */
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date happenTime;
    /**
     * 持续时间，秒
     */
    private Integer duration;
    /**
     * 报警时间
     */
    private Date alarmTime;
    /**
     * 图片凭证地址
     */
    private String snapPath;
    /**
     * 违规类型(1.工作纪律)
     */
    private Integer irregularOtherType;
    /**
     * 绩效类型【attend:考勤绩效,review:评价差评绩效,complain:评价投诉绩效,gowork:办件绩效,effect:效能绩效,other:其它绩效】
     */
    private String performType;
    /**
     * 扣分人员
     */
    @Excel(name = "扣分人员")
    private String deductPerson;
    /**
     * 扣分时间
     */
    private Date deductTime;
    /**
     * 绩效记录申诉附件信息信息
     */
    private List<PerformAttendAppealFilesEntity> performAttendAppealFilesList=new ArrayList<>();;
    public List<PerformAttendAppealFilesEntity> getPerformAttendAppealFilesList(){
        return performAttendAppealFilesList;
    }

    public void setPerformAttendAppealFilesList(List<PerformAttendAppealFilesEntity> performAttendAppealFilesList){
        this.performAttendAppealFilesList = performAttendAppealFilesList;
    }
    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof PerformAttendAppealEntity) {
            PerformAttendAppealEntity tmp = (PerformAttendAppealEntity) obj;
            if (this.getId() == tmp.getId()) {
                return true;
            }
        }
        return false;
    }

    public void initAttrValue(){

        this.checkRecordId = 0L;

        this.staffId = 0L;

        this.staffName = "";

        this.workNum = "";

        this.deptId = 0L;

        this.deptName = "";

        this.attendanceGroupId = 0L;

        this.attendanceGroupName = "";

        this.attendanceDate = null;

        this.ruleId = 0L;

        this.ruleName = "";

        this.subMethod = 1;

        this.subAddType = 1;

        this.score = BigDecimal.valueOf(0.00);

        this.goOffTimeStr = "";

        this.errorTime = null;

        this.actualAttendTime = null;

        this.errorResult = "";

        this.checkPerson = "";

        this.checkTime = null;

        this.checkDesc = "";

        this.checkResult = "";

        this.processStatus = 1;

        this.appealDesc = "";

        this.appealTime = null;

        this.appealResult = 0;

        this.remark = "";

        this.violationType = "";

        this.reviewResult = 0;

        this.reviewTime = null;

        this.reviewSource = "";

        this.reviewDevice = "";

        this.complainTitle = "";

        this.complainContent = "";

        this.complainRealName = "";

        this.contact = "";

        this.complainTime = null;

        this.complainSource = "";

        this.complainDevice = "";

        this.goworkCode = "";

        this.goworkDepts = "";

        this.matterlName = "";

        this.goworkTime = null;

        this.irregularType = null;

        this.happenTime = null;

        this.duration = 0;

        this.alarmTime = null;

        this.snapPath = "";

        this.irregularOtherType = null;

        this.performType = "";

        this.deductPerson = "";

        this.deductTime = null;
    }
}