package com.xhkjedu.sexam.model.paperstudent;

import com.xhkjedu.model.BaseBean;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Table(name = "e_paper_student_question")
@Data
public class EPaperStudentQuestion extends BaseBean {
    @Id
    //考试试卷学生题库试题表
    private Integer epsqid;

    //班级id
    private Integer classid;

    //学生id
    private Integer studentid;

    //考试id
    private Integer examid;

    //科目id
    private String subjectid;

    //试卷id
    private Integer epid;

    //试卷学生id
    private Integer epsid;

    private Integer eptqid;//试卷中试题id

    //处理题型
    private Integer ctype;

    //试题id
    private String questionid;

    //题号
    private String qn;

    //试题排序
    private Integer qorder;

    //是否作答0未作答1已作做答
    private Integer answered;

    //答案类型1选择题、图片2纯文本
    private Integer answertype;

    //学生答案（选项、图片）
    private String stuanswer;

    //学生答案（纯文本）
    private String stuanswertxt;

    //是否转换0未转换1已转换2转换失败
    private Integer converted;

    //提交时间
    private Integer answertime;

    //单题花费时间(单位秒)
    private Integer costtime;

    //试题分值
    private Double qscore;

    //学生得分
    private Double stuscore;

    //是否批改0未批改1批改中2已批改
    private Integer checked;

    //批改人
    private Integer checkid;

    //批改时间
    private Integer checktime;

    //优秀试卷0默认1优秀
    private Integer good;

    //违纪试卷0默认1违纪
    private Integer bad;

    //客观题是否需要重新批改0不需要1需要
    private Integer needdeal;

    @Transient
    private String stuname;//学生姓名

    @Transient
    private String checkname;//批阅人

    @Transient
    private String answer;//试题正确答案

    @Transient
    private List<Integer> eptqids;//试卷试题ids

    @Transient
    private String classids;//班级ids

    //学生试卷得分
    @Transient
    private Double stupaperscore;

}