package com.xhkjedu.sstudy.model.question;

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

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

@Table(name = "t_question")
@Data
public class TQuestion extends BaseBean {
    //试题表
    @Id
    private String questionid;

    //试题分值
    private Double score;

    //试题难易度
    private Integer complexity;

    //处理题型1单选题2多选题3主观题4判断对错5判断√×6判断TF7完形填空8阅读理解9课堂画图题10任务型阅读11复合题12听力题
    private Integer ctype;

    //是否是听力题0不是1是
    private Integer hashear;

    //听力题文件地址
    private String hearfile;

    //试题题型id
    private String qtypeid;

    //试题题型名称
    private String qtypename;

    @Transient
    //教材关联id
    private String lsbid;

    @Transient
    //章节id
    private String directorid;

    //科目id
    private String subjectid;

    //组题次数
    private Integer count;

    //资源归属1平台1区平台3学校4个人10伙伴校(搜索时5我的收藏 6我的上传)
    private Integer belong;

    //试题类型1单体2母题3子题
    private Integer qlevel;

    //子题数量
    private Integer snum;

    //子题排序
    private Integer sorder;

    //试题对应母题id
    private String questionpid;

    //试题状态0默认1正常（上架）2下架10已删除
    private Integer qstate;

    //来源
    private String source;

    //年份
    private Integer year;

    //归属省份
    private String region;

    //资源归属地学校名称
    private String schoolname;

    //同步时间戳
    private Integer timeunix;

    //创建人id
    private Integer createid;

    //创建时间
    private Integer createtime;

    //学校id
    private Integer schoolid;

    //试题题干
    private String qstem;

    //题干纯文本
    private String qstemtxt;

    //试题选项
    private String qoption;

    //试题答案
    private String qanswer;

    //试题分析
    private String qanalyze;

    //上传试卷id
    @Transient
    private Integer upid;

    //试题关联知识点
    @Transient
    private List<TQuestionPoint> questionPoints;

    //试题关联章节
    @Transient
    private List<TQuestionDirector> directors;

    //知识点id
    @Transient
    private String pointid;

    @Transient
    private List<TQuestion> questions;//子题集合
    @Transient
    private List<Map> schools;//伙伴校
    private String shareqid;//分享试题id

    @Transient
    private Integer directorLeaf;//章节是否是叶子节点0不是1是

    @Transient
    private String directorall;//所有层章节拼接

    @Transient
    private Integer pointLeaf;//知识点是否是叶子节点0不是1是

    @Transient
    private String pointall;//所有层知识点拼接
}
