package jnpf.model.cultivate.vo.learn;

import jnpf.model.cultivate.po.learn.FtbCultivateLearnTaskCertificate;
import lombok.Data;

/**
 * @Author: peng.hao
 * @create: 2024/9/9:14:15
 */
@Data
public class FtbCultivateLearnTaskCertificateInfoVO {
    /** 证书主键id */
    private String  certificateId;
    /**
     * 证书名称
     */
    private String  certificateName;

    /** 颁发规则考试(0 合格, 1 优秀)*/
    private Integer  examRule;

    /** 颁发规则鉴定(0 合格, 1 优秀)*/
    private Integer  identificationRule;

    public static FtbCultivateLearnTaskCertificateInfoVO convert(FtbCultivateLearnTaskCertificate learnTaskCertificate) {
        if (learnTaskCertificate == null) {
            return null;
        }
        FtbCultivateLearnTaskCertificateInfoVO ftbCultivateLearnTaskCertificateInfoVO = new FtbCultivateLearnTaskCertificateInfoVO();
        ftbCultivateLearnTaskCertificateInfoVO.setCertificateId(learnTaskCertificate.getCertificateId());
        ftbCultivateLearnTaskCertificateInfoVO.setExamRule(learnTaskCertificate.getExamRule());
        ftbCultivateLearnTaskCertificateInfoVO.setIdentificationRule(learnTaskCertificate.getIdentificationRule());
        return ftbCultivateLearnTaskCertificateInfoVO;
    }
}
