package jnpf.model.cultivate.dto.learn;

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

/**
 * @Author: peng.hao
 * @create: 2024/9/9:14:13
 */
@Data
public class FtbCultivateLearnTaskIdentificationInfoDto {
    /** 实操主键id */
    private String identificationId;

    /** 鉴定规则(0否,1,是 考试合格才能鉴定)*/
    private Integer identificationRule;
    /**
     * 鉴定名称
     */
    private String identificationName;

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

    public static FtbCultivateLearnTaskIdentificationInfoDto convert(FtbCultivateLearnTaskIdentification ftbCultivateLearnTaskIdentification) {
        if (ftbCultivateLearnTaskIdentification == null) {
            return null;
        }
        FtbCultivateLearnTaskIdentificationInfoDto ftbCultivateLearnTaskIdentificationInfoDto = new FtbCultivateLearnTaskIdentificationInfoDto();
        ftbCultivateLearnTaskIdentificationInfoDto.setIdentificationId(ftbCultivateLearnTaskIdentification.getIdentificationId());
        ftbCultivateLearnTaskIdentificationInfoDto.setIdentificationRule(ftbCultivateLearnTaskIdentification.getIdentificationRule());
        ftbCultivateLearnTaskIdentificationInfoDto.setIsPassComplete(ftbCultivateLearnTaskIdentification.getIsPassComplete());
        return ftbCultivateLearnTaskIdentificationInfoDto;
    }

}
