package com.sundot.airport.exam.logic.manage.model.result;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sundot.airport.exam.logic.manage.model.result.sub.ExamRecordDetailQuesResult;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <b>功能名: </b>ExamRecordDetailResult<br>
 * <b>说明: </b> 测试记录结果 <br>
 * <b>著作权: </b> Copyright (C) 2021 HUIFANEDU  CORPORATION<br>
 * <b>修改履历: </b><br>
 *
 * @author 2021/7/6 liangxiao
 */
@Data
public class ExamRecordDetailResult {
    /**
     * 测试记录业务主键ID
     */
    private String erId;

    /**
     * 测试名
     */
    private String erExName;

    /**
     * 测试记录创建时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;

    /**
     * 用户测试用时 单位:秒
     */
    private Integer erExamTime;

    /**
     * 测试得分
     */
    private Integer erScore;

    /**
     * 答题正确数量
     */
    private Integer erBingoCount;

    /**
     * 题目总数
     */
    private Integer erTpQuesNum;

    /**
     * 正确率 100表示全对
     */
    private Integer erCorrect;

    /**
     * 证书获得时间
     */
    private String certTime;

    /**
     * 用户名
     */
    private String erUsrName;

    /**
     * 测试题目列表
     */
    private List<ExamRecordDetailQuesResult> question;

    @Override
    public String toString() {
        return "ExamRecordDetailResult{" +
                "erId='" + erId + '\'' +
                ", erExName='" + erExName + '\'' +
                ", createTime=" + createTime +
                ", erExamTime=" + erExamTime +
                ", erScore=" + erScore +
                ", erBingoCount=" + erBingoCount +
                ", erTpQuesNum=" + erTpQuesNum +
                ", erCorrect=" + erCorrect +
                ", certTime='" + certTime + '\'' +
                ", erUsrName='" + erUsrName + '\'' +
                ", question=" + question +
                '}';
    }

    /**
     * 部分答对题目数
     */
    private Integer erPartBingoCount;

    /**
     * 错误题目数
     */
    private Integer erIncorrectCount;

    /**
     * 未作答题目数
     */
    private Integer erNotFilledCount;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;
}
