package jnpf.model.cultivate.dto.learn;

import com.baomidou.mybatisplus.annotation.TableField;
import jnpf.model.cultivate.po.learn.FtbCultivateLearnTaskExam;
import lombok.Data;

/**
 * @Author: peng.hao
 * @create: 2024/9/9:14:12
 */
@Data
public class FtbCultivateLearnTaskExamInfoDto {
    /** 考试主键id */
    private String examId;
    /**
     * 考试名称
     */
    private String examName;

    /** 是否合格才完成任务，1-是  0-否 */
    private Integer isPassComplete;

    public static FtbCultivateLearnTaskExamInfoDto convert(FtbCultivateLearnTaskExam ftbCultivateLearnTaskExam) {
        if (ftbCultivateLearnTaskExam == null) {
            return null;
        }
        FtbCultivateLearnTaskExamInfoDto ftbCultivateLearnTaskExamInfoDto = new FtbCultivateLearnTaskExamInfoDto();
        ftbCultivateLearnTaskExamInfoDto.setExamId(ftbCultivateLearnTaskExam.getExamId());
        ftbCultivateLearnTaskExamInfoDto.setIsPassComplete(ftbCultivateLearnTaskExam.getIsPassComplete());
        return ftbCultivateLearnTaskExamInfoDto;
    }

}
