package jnpf.model.cultivate.vo.learn;

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

import java.math.BigDecimal;

/**
 * @Author: peng.hao
 * @create: 2024/9/9:14:13
 */
@Data
public class FtbCultivateLearnTaskIdentificationInfoVO {

    /** 实操主键id */
    private String identificationId;

    /** 鉴定名称 */
    private String identificationName;

    /** 鉴定类型  4,任务鉴定*/
    private Integer identificationType;

    /** 鉴定分数 */
    private BigDecimal identificationScore;

    /** 鉴定状态(0待鉴定，1已鉴定，2逾期未鉴定)*/
    private Integer identificationStatus;

    /** 鉴定结果 (0合格，1优秀，2不合格)*/
    private Integer identificationResult;

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

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

    public static FtbCultivateLearnTaskIdentificationInfoVO convert(FtbCultivateLearnTaskIdentification learnTaskIdentification) {
        if (learnTaskIdentification == null) {
            return null;
        }
        FtbCultivateLearnTaskIdentificationInfoVO ftbCultivateLearnTaskIdentificationInfoVO = new FtbCultivateLearnTaskIdentificationInfoVO();
        ftbCultivateLearnTaskIdentificationInfoVO.setIdentificationId(learnTaskIdentification.getIdentificationId());
        ftbCultivateLearnTaskIdentificationInfoVO.setIdentificationRule(learnTaskIdentification.getIdentificationRule());
        ftbCultivateLearnTaskIdentificationInfoVO.setIsPassComplete(learnTaskIdentification.getIsPassComplete());
        return ftbCultivateLearnTaskIdentificationInfoVO;
    }
}
