|
|
|
@ -1,13 +1,11 @@
|
|
|
|
|
package com.ibeetl.jlw.entity;
|
|
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Dict;
|
|
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
|
|
import com.ibeetl.admin.core.util.ValidateConfig;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
import org.beetl.sql.annotation.entity.AutoID;
|
|
|
|
|
import org.beetl.sql.annotation.entity.InsertIgnore;
|
|
|
|
|
import org.beetl.sql.annotation.entity.UpdateIgnore;
|
|
|
|
|
import org.beetl.sql.fetch.annotation.Fetch;
|
|
|
|
|
import org.beetl.sql.fetch.annotation.FetchSql;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -28,14 +26,17 @@ public class TeacherOpenCourseMergeCourseInfo extends BaseEntity implements Comp
|
|
|
|
|
private Long teacherOpenCourseMergeCourseInfoId ;
|
|
|
|
|
|
|
|
|
|
//开课ID
|
|
|
|
|
@Dict(type="teacher_open_course.teacher_open_course_name.teacher_open_course_status=1")
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
// @UpdateIgnore
|
|
|
|
|
// @InsertIgnore
|
|
|
|
|
// @Dict(type="teacher_open_course.teacher_open_course_name.teacher_open_course_status=1")
|
|
|
|
|
// @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;
|
|
|
|
|
|
|
|
|
|
//名称(课程名 或 章名 或 节名)
|
|
|
|
|
|
|
|
|
@ -46,14 +47,16 @@ public class TeacherOpenCourseMergeCourseInfo extends BaseEntity implements Comp
|
|
|
|
|
private String courseInfoThumbnail ;
|
|
|
|
|
|
|
|
|
|
//课程标签ID
|
|
|
|
|
@Dict(type="course_label.course_label_name.course_label_status=1")
|
|
|
|
|
|
|
|
|
|
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 course_label_name from course_label " +
|
|
|
|
|
// "where course_label_status = 1 " +
|
|
|
|
|
// "and course_label_id = #courseLabelId# ")
|
|
|
|
|
// private String courseLabelIdText;
|
|
|
|
|
|
|
|
|
|
//课程学习人数基数
|
|
|
|
|
|
|
|
|
@ -353,23 +356,6 @@ public class TeacherOpenCourseMergeCourseInfo extends BaseEntity implements Comp
|
|
|
|
|
return (List<TeacherOpenCourseMergeCourseInfo>)this.get("children");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getTeacherOpenCourseIdText() {
|
|
|
|
|
return teacherOpenCourseIdText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTeacherOpenCourseIdText(String teacherOpenCourseIdText) {
|
|
|
|
|
this.teacherOpenCourseIdText = teacherOpenCourseIdText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCourseLabelIdText() {
|
|
|
|
|
return courseLabelIdText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCourseLabelIdText(String courseLabelIdText) {
|
|
|
|
|
this.courseLabelIdText = courseLabelIdText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int compareTo(TeacherOpenCourseMergeCourseInfo o) {
|
|
|
|
|
return this.getTeacherOpenCourseMergeCourseInfoId().compareTo(o.getTeacherOpenCourseMergeCourseInfoId());
|
|
|
|
|