package jnpf.model.personnels.dto.config;

import jnpf.model.personnels.po.FtbPersonnelsAuditCarbonRecipient;
import lombok.Data;

/**
 * @Title:FtbPersionnelsSendCranbonCopy
 * @Author:peng.hao
 * @create: 2024/2/211:15
 */
@Data
public class FtbPersionnelsSendCranbonCopy{

    /**
     * 组织id
     */
    private String orgId;
    /**
     * 组织id
     */
    private String orgName;


    /**
     * 岗位id
     */
    private String postId;

    /**
     * 岗位名称
     */
    private String postName;

    /**
     * 职等id
     */
    private String gradeId;

    /** 职等名称 */
    private String gradeName;

    /**
     * 抄送人姓名
     */
    private String ccName;
    /**
     * 抄送人ID
     */
    private String ccId;


    public static FtbPersonnelsAuditCarbonRecipient coverFtbPersonnelsAuditCarbonRecipient(FtbPersionnelsSendCranbonCopy dto) {
        if (dto == null) {
            return null;
        }
        FtbPersonnelsAuditCarbonRecipient ftbPersonnelsAuditCarbonRecipient = new FtbPersonnelsAuditCarbonRecipient();
        ftbPersonnelsAuditCarbonRecipient.setOrgId(dto.getOrgId());
        ftbPersonnelsAuditCarbonRecipient.setOrgName(dto.getOrgName());
        ftbPersonnelsAuditCarbonRecipient.setPostId(dto.getPostId());
        ftbPersonnelsAuditCarbonRecipient.setPostName(dto.getPostName());
        ftbPersonnelsAuditCarbonRecipient.setGradeId(dto.getGradeId());
        ftbPersonnelsAuditCarbonRecipient.setGradeName(dto.getGradeName());
        ftbPersonnelsAuditCarbonRecipient.setUerName(dto.getCcName());
        ftbPersonnelsAuditCarbonRecipient.setUserId(dto.getCcId());
        return ftbPersonnelsAuditCarbonRecipient;
    }
}
