package com.xhkjedu.sstudy.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.ArrayList;
import java.util.List;

@Table(name = "t_paper")
@Data
public class TPaper extends BaseBean {
    //作业表
    @Id
    private Integer paperid;

    //作业名称
    private String papername;

    //试题数量
    private Integer papernum;

    //作业总分
    private Double paperscore;

    //科目id
    private String subjectid;

    //关联关系id
    private String lsbid;

    //章节id
    private String directorid;

    //作业类型1结构性试题2自定义答题卡3靶向作业
    private Integer papertype;

    //作业分类1课前2课后
    private Integer paperclass;

    //作业状态：21未布置 22 已布置
    private Integer paperstate;

    //批改方式1教师批改2学生互改3指定学生批改4自动批改
    private Integer checktype;

    //作业说明
    private String comm;

    //创建人id
    private Integer createid;

    //创建时间
    private Integer createtime;

    //学校id
    private Integer schoolid;

    //hearfile
    private String hearfile;

    //是否有伙伴学校：0没有1有
    private Integer hashb;

    //是否生成报告：0未生产1已生成
    private Integer hasreport;

    //提交形式：图片,文字,视频,音频 ["image","text","video","audio"]
    private String committype;

    //时间类型：1统一布置2分班布置
    private Integer timetype;

    //补交：0不允许 1允许
    private Integer aftercommit;

    //作业附件：0没有1有
    private Integer hasfile;

    //发布年份
    private Integer year;

    //是否删除0未删除1已删除
    private Integer deleted;

    //作业附件
    @Transient
    private List<TPaperFile> pfiles = new ArrayList<>();

    //答题卡中试题json对象集合
    @Transient
    private String questionStr;

    //作业开始时间
    @Transient
    private Integer starttime;

    //作业截至时间
    @Transient
    private Integer stoptime;

    //班级id
    @Transient
    private Integer classid;

    //排序字段
    @Transient
    private String fieldname;

    //排序规则：正序asc 倒序desc
    @Transient
    private String fieldorder;
}
