package jnpf.model.personnels.vo.history;

import jnpf.model.personnels.dto.config.FtbPersionnelsSendCranbonCopy;
import jnpf.model.personnels.po.FtbPersonnelsAuditRunTaskHistory;
import jnpf.model.personnels.vo.config.FtbPersonnelsAuditRunTaskInfo;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Title:FtbPersonnelsAuditRunTaskHistoryVO
 * @Author:peng.hao
 * @create: 2024/2/214:05
 */
@Data
public class FtbPersonnelsAuditRunTaskHistoryVO {



    private String id;
    /**
     * 业务主键id
     */
    private String businessId;

    /**
     * 当前执行状态(0,待审批,1审批中,2,审核通过,3,审核不通过,4,撤销)
     */
    private Integer excuseStatus;

    /**
     * 审批流程发起时间
     */
    private Date creatorTime;

    /**
     *审批流程 详情
     */
    private List<FtbPersonnelsAuditRunTaskInfo> taskInfos;

    /**
     * 抄送人 最多50个人抄送 json格式存储
     */
    private List<FtbPersionnelsSendCranbonCopy> copyRecipient;
    /**
     * 人事流程审核主配置表id
     */
    private String masterAuditConfigId;

    public static FtbPersonnelsAuditRunTaskHistoryVO coverFtbPersonnelsAuditRunTaskHistoryVO(FtbPersonnelsAuditRunTaskHistory dto) {
        FtbPersonnelsAuditRunTaskHistoryVO vo = new FtbPersonnelsAuditRunTaskHistoryVO();
        vo.setId(dto.getId());
        vo.setBusinessId(dto.getBusinessId());
        vo.setExcuseStatus(dto.getExcuseStatus());
        vo.setMasterAuditConfigId(dto.getMasterAuditConfigId());
        vo.setCreatorTime(dto.getCreatorTime());
        return vo;
    }

}
