package com.xhkjedu.sapi.model.research;

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;
import java.util.Map;

@Table(name = "t_research")
@Data
public class TResearch extends BaseBean {
    //教研表
    @Id
    private Integer researchid;

    //教研名称
    private String researchname;

    //教研视频路径 
    private String researchpath;

    //教研封面
    private String researchcover;

    //视频时长（秒）
    private Integer duration;

    //视频大小
    private Integer filesize;

    //阅读次数
    private Integer readnum;

    //开始时间
    private Integer starttime;

    //结束时间
    private Integer stoptime;

    //创建人id
    private Integer createid;

    //创建时间
    private Integer createtime;

    //学校id
    private Integer schoolid;

    //教研内容
    private String researchcontent;

    //mp4文件编码：mpeg4网页端不能播放，h264网页端能播放
    private String mp4code;

    //是否公开0公开1不公开
    private Integer publiced;

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

    @Transient
    //选择参与教研的教师id
    List<Map<String, Integer>> teacherids = new ArrayList<>();

    //排序方式 readnum,stoptime
    @Transient
    private String rorder;

    //是否发送通知1发送2不发送
    @Transient
    private Integer notice;

    @Transient
    //教师集合
    private List<TResearchUser> teachers;

    @Transient
    //学校集合
    private List<Map<String, Object>> schools;

    @Transient
    private Integer userid;
}

