package com.xhkjedu.smarking.model.paper;

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

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

/**
 * @Description 阅卷试卷表
 * @Author auto
 * @Date 2024-10-15
 */
@Data
@Table(name = "ms_paper")
public class MsPaper extends BaseBean {
    @Id
    //阅卷试卷ID
    private Integer mpid;
    //考试id
    private Integer examid;
    //考试科目表id
    private Integer msid;
    //科目id
    private String subjectid;
    //试卷类型1题库2附件
    private Integer ptype;
    //试题数量
    private Integer pnum;
    //合并后试题数量
    private Integer mergepnum;
    //试卷总分
    private Double pscore;
    //是否设置正确答案0未设置1已设置
    private Integer answered;
    //批阅设置：1按班设置2按题设置3按题块设置
    private Integer correcttype;
    //是否有听力文件0没有1有
    private Integer hasfile;
    //听力允许播放次数0不限制
    private Integer hearnum;
    //听力题文件地址(附件试卷）
    private String hearfile;
    //原卷状态0未上传1已上传2已切割
    private Integer yjstate;
    //创建人ID
    private Integer createid;
    //创建时间
    private Integer createtime;
    //修改人ID
    private Integer handleid;
    //修改时间
    private Integer handletime;

    //题型
    @Transient
    private List<MsPaperQtype> qtypes;
    //文件
    @Transient
    private List<MsPaperFile> pfiles;

    //试题
    @Transient
    private List<MsPaperQtypeQuestion> questions;
    @Transient
    //科目名称
    private String subjectname;

}
