package jnpf.model.personnels.dto.audit;

import jnpf.model.personnels.vo.task.FtbPersonnelsAuditInfoVO;
import lombok.Data;

/**
 * @Title:FtbPersonnelsAuditSubConfigVO
 * @Author:peng.hao
 * @create: 2024/2/1811:34
 */
@Data
public class FtbPersonnelsAuditSubConfigVO {

    /**
     * 一人审批通过即视为该流程全部审批通过(0否,1是)
     */
    private Integer isOnePersonPasses;

    /**
     * 审批意见是否必填 0,否 1,是
     */
    private String isTheReviewRequired;

    /**
     * 薪酬填写 0,否 1,是
     */
    private String entryRequired;

    /**
     *  薪资审核标识 0,否 1,是
     */
    private String payrollRequired;

    /** 黑名单填写(0否,1是) (v1.1) */
    private String blacklistFilling;

    public static FtbPersonnelsAuditInfoVO coverFtbPersonnelsAuditInfoVO(FtbPersonnelsAuditSubConfigVO dto) {
        if (dto == null) {
            return null;
        }
        FtbPersonnelsAuditInfoVO ftbPersonnelsAuditInfoVO = new FtbPersonnelsAuditInfoVO();
        ftbPersonnelsAuditInfoVO.setIsTheReviewRequired(dto.getIsTheReviewRequired());
        ftbPersonnelsAuditInfoVO.setEntryRequired(dto.getEntryRequired());
        ftbPersonnelsAuditInfoVO.setPayrollRequired(dto.getPayrollRequired());
        ftbPersonnelsAuditInfoVO.setIsOnePersonPasses(dto.getIsOnePersonPasses());
        ftbPersonnelsAuditInfoVO.setBlacklistFilling(dto.getBlacklistFilling());
        return ftbPersonnelsAuditInfoVO;
    }
}
