package jnpf.model.personnels.vo.rewardspunishments;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @Title: AddStaffEmploymentApplyExcelERRVO
 * @Author: peng.hao
 * @create: 2024/2/20 11:16
 */
@Data
public class FtbEmploymentRecordsExcelERRVO {
    /**
     * 姓名
     */
    @ExcelProperty( index = 0,value = "姓名")
    private String workerName;
    /**
     * 员工ID
     */
    @ExcelProperty(index = 1,value = "员工ID")
    private String employeeID;
    /**
     * 组织
     */
    @ExcelProperty(index =2,value = "组织")
    private String currOrgName;

    /**
     * 岗位
     */
    @ExcelProperty(index = 3,value = "岗位")
    private String currPositionName;

    /**
     * 奖惩类别
     */
    @ExcelProperty(index = 4,value = "奖惩类别")
    private String type;
    /**
     * 奖惩类型名称
     */
    @ExcelProperty(index = 5,value = "奖惩类型名称")
    private String punishmentTypeName;
    /**
     * 奖惩金额
     */
    @ExcelProperty(index = 6,value = "奖惩金额")
    private String amount;
    /**
     * 薪酬核算日期
     */
    @ExcelProperty(index =7,value = "薪酬核算日期")
    private String day;
    /**
     * 奖惩原因
     */
    @ExcelProperty(index = 8,value = "奖惩原因")
    private String rewardReason;

    /**
     * 错误备注
     */
    @ExcelProperty(index = 9,value = "错误备注")
    private String errorRemarks;

    public static FtbEmploymentRecordsExcelERRVO convert(FtbEmploymentRewardExcelVO vo) {
        if (vo == null) {
            return null;
        }
        FtbEmploymentRecordsExcelERRVO ftbEmploymentRecordsExcelERRVO = new FtbEmploymentRecordsExcelERRVO();
        ftbEmploymentRecordsExcelERRVO.setWorkerName(vo.getWorkerName());
        ftbEmploymentRecordsExcelERRVO.setEmployeeID(vo.getEmployeeID());
        ftbEmploymentRecordsExcelERRVO.setCurrOrgName(vo.getCurrOrgName());
        ftbEmploymentRecordsExcelERRVO.setCurrPositionName(vo.getCurrPositionName());
        ftbEmploymentRecordsExcelERRVO.setType(vo.getType());
        ftbEmploymentRecordsExcelERRVO.setPunishmentTypeName(vo.getPunishmentTypeName());
        ftbEmploymentRecordsExcelERRVO.setAmount(vo.getAmount());
        ftbEmploymentRecordsExcelERRVO.setDay(vo.getDay());
        ftbEmploymentRecordsExcelERRVO.setRewardReason(vo.getRewardReason());
        return ftbEmploymentRecordsExcelERRVO;
    }
}
