|
|
package com.ibeetl.jlw.entity;
|
|
|
|
|
|
import lombok.Data;
|
|
|
import org.beetl.sql.annotation.entity.AutoID;
|
|
|
import org.beetl.sql.annotation.entity.InsertIgnore;
|
|
|
import org.beetl.sql.annotation.entity.Table;
|
|
|
import org.beetl.sql.annotation.entity.UpdateIgnore;
|
|
|
import org.beetl.sql.fetch.annotation.Fetch;
|
|
|
import org.beetl.sql.fetch.annotation.FetchSql;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 开课- 课程配置-离线
|
|
|
* Tree结构数据
|
|
|
*
|
|
|
* @author mlx
|
|
|
*/
|
|
|
@Data
|
|
|
@Fetch(level = 5)
|
|
|
@Table(name = "teacher_open_course_merge_course_info")
|
|
|
@SuppressWarnings("ALL")
|
|
|
public class TeacherOpenCourseMergeCourseInfoTree {
|
|
|
|
|
|
//ID
|
|
|
@AutoID
|
|
|
private Long teacherOpenCourseMergeCourseInfoId ;
|
|
|
|
|
|
//开课ID
|
|
|
private Long teacherOpenCourseId ;
|
|
|
|
|
|
@UpdateIgnore
|
|
|
@InsertIgnore
|
|
|
@FetchSql("select teacher_open_course_title from teacher_open_course " +
|
|
|
"where teacher_open_course_status = 1 " +
|
|
|
"and teacher_open_course_id = #teacherOpenCourseId# ")
|
|
|
private String teacherOpenCourseIdText;
|
|
|
|
|
|
//名称(课程名 或 章名 或 节名)
|
|
|
|
|
|
private String courseInfoName ;
|
|
|
|
|
|
//课程缩略图
|
|
|
|
|
|
private String courseInfoThumbnail ;
|
|
|
|
|
|
//课程标签ID
|
|
|
private Long courseLabelId ;
|
|
|
|
|
|
@UpdateIgnore
|
|
|
@InsertIgnore
|
|
|
@FetchSql("select course_label_name from course_label " +
|
|
|
"where course_label_status = 1 " +
|
|
|
"and course_label_id = #courseLabelId# ")
|
|
|
private String courseLabelIdText;
|
|
|
|
|
|
@UpdateIgnore
|
|
|
@InsertIgnore
|
|
|
@FetchSql("SELECT * FROM " +
|
|
|
"teacher_open_course_merge_resources_info t " +
|
|
|
"WHERE 1 = 1 " +
|
|
|
"AND teacher_open_course_id = #teacherOpenCourseId# " +
|
|
|
"and t.teacher_open_course_merge_course_info_id = #teacherOpenCourseMergeCourseInfoId# ")
|
|
|
private List<TeacherOpenCourseMergeResourcesInfo> resourcesInfo;
|
|
|
|
|
|
//课程学习人数基数
|
|
|
|
|
|
private Integer courseInfoBasicsCount ;
|
|
|
|
|
|
//课程简介
|
|
|
|
|
|
private String courseInfoContent ;
|
|
|
|
|
|
//状态(1启用 2禁用 3删除)
|
|
|
|
|
|
private Integer courseInfoStatus ;
|
|
|
|
|
|
//类型(1课程 2章 3节)
|
|
|
|
|
|
private Integer courseInfoType ;
|
|
|
|
|
|
//父节点ID
|
|
|
|
|
|
private Long courseInfoParentId ;
|
|
|
|
|
|
//视频ID(resources_info_id,和节对应)
|
|
|
|
|
|
private Long courseVideoId ;
|
|
|
|
|
|
//课件ID(resources_info_id,和节对应)
|
|
|
|
|
|
private Long courseCoursewareId ;
|
|
|
|
|
|
//附件IDs(resources_info_id,和节对应)
|
|
|
|
|
|
private String courseEnclosureIds ;
|
|
|
|
|
|
//客观题IDs(和章对应)
|
|
|
|
|
|
private String resourcesQuestionIds ;
|
|
|
|
|
|
//竞赛题IDs(和章对应)
|
|
|
|
|
|
private String resourcesCompetitionIds ;
|
|
|
|
|
|
//实训题IDs(和章对应)
|
|
|
|
|
|
private String resourcesTrainingIds ;
|
|
|
|
|
|
//组织机构ID
|
|
|
|
|
|
private Long orgId ;
|
|
|
|
|
|
//后台用户ID
|
|
|
|
|
|
private Long userId ;
|
|
|
|
|
|
@FetchSql("select * from teacher_open_course_merge_course_info t " +
|
|
|
"where t.course_info_parent_id = #teacherOpenCourseMergeCourseInfoId# ")
|
|
|
private List<TeacherOpenCourseMergeCourseInfoTree> children;
|
|
|
|
|
|
@FetchSql("select count(1) > 0 from teacher_open_course_merge_course_info t " +
|
|
|
"where t.course_info_parent_id = #teacherOpenCourseMergeCourseInfoId# ")
|
|
|
private Boolean hasChildren;
|
|
|
|
|
|
}
|