|
|
|
@ -0,0 +1,112 @@
|
|
|
|
|
package com.ibeetl.jlw.entity;
|
|
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Dict;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.DictEnum;
|
|
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
|
|
import com.ibeetl.admin.core.util.ValidateConfig;
|
|
|
|
|
import com.ibeetl.jlw.enums.ChatLogSendTypeEnum;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
import org.beetl.sql.annotation.entity.AssignID;
|
|
|
|
|
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 javax.validation.constraints.NotNull;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 课程开课-互动-评论日志
|
|
|
|
|
* gen by Spring Boot2 Admin 2022-09-18
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@EqualsAndHashCode(callSuper=false)
|
|
|
|
|
// 递归数据。最多支持1000层级,再深层级的就无法查询了
|
|
|
|
|
@Fetch(level=1000)
|
|
|
|
|
@Table(name = "teacher_open_course_chat_log")
|
|
|
|
|
public class TeacherOpenCourseChatLogTree extends BaseEntity{
|
|
|
|
|
|
|
|
|
|
//课程开课--讨论-日志ID
|
|
|
|
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
|
|
|
|
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
|
|
|
|
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.TeacherOpenCourseChatLog")
|
|
|
|
|
|
|
|
|
|
private Long teacherOpenCourseChatLogId ;
|
|
|
|
|
|
|
|
|
|
//上级ID, 默认0L 顶级:0L
|
|
|
|
|
|
|
|
|
|
private Long teacherOpenCourseChatLogParentId;
|
|
|
|
|
|
|
|
|
|
@FetchSql("select * from teacher_open_course_chat_log t " +
|
|
|
|
|
"where t.teacher_open_course_id = #teacherOpenCourseId# " +
|
|
|
|
|
"and t.teacher_open_course_chat_log_parent_id = #teacherOpenCourseChatLogId# " +
|
|
|
|
|
"and t.teacher_open_course_chat_log_parent_id != 0")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private List<TeacherOpenCourseChatLogTree> children;
|
|
|
|
|
|
|
|
|
|
//课程开课ID
|
|
|
|
|
@Dict(type="teacher_open_course.teacher_open_course_title.teacher_open_course_status=1")
|
|
|
|
|
|
|
|
|
|
private Long teacherOpenCourseId ;
|
|
|
|
|
|
|
|
|
|
//班级ID集合
|
|
|
|
|
private String schoolClassIds ;
|
|
|
|
|
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
@FetchSql("select group_concat(t.class_name) from school_class t where find_in_set(t.class_id, #schoolClassIds#) and t.class_status = 1")
|
|
|
|
|
private String schoolClassIdsText;
|
|
|
|
|
|
|
|
|
|
//教师ID
|
|
|
|
|
@Dict(type="teacher.teacher_name.teacher_status=1")
|
|
|
|
|
|
|
|
|
|
private Long teacherId ;
|
|
|
|
|
|
|
|
|
|
//学生ID
|
|
|
|
|
@Dict(type="student.student_name.student_status=1")
|
|
|
|
|
|
|
|
|
|
private Long studentId ;
|
|
|
|
|
|
|
|
|
|
//讨论内容
|
|
|
|
|
|
|
|
|
|
private String chatContent ;
|
|
|
|
|
|
|
|
|
|
//关键字(多个逗号隔开)
|
|
|
|
|
|
|
|
|
|
private String keywords ;
|
|
|
|
|
|
|
|
|
|
//学生得分
|
|
|
|
|
|
|
|
|
|
private BigDecimal studentScore ;
|
|
|
|
|
|
|
|
|
|
// 提问方式
|
|
|
|
|
@DictEnum
|
|
|
|
|
private ChatLogSendTypeEnum chatLogSendType;
|
|
|
|
|
|
|
|
|
|
//附件上传(仅支持图片,多个逗号隔开)
|
|
|
|
|
|
|
|
|
|
private String chatFiles ;
|
|
|
|
|
|
|
|
|
|
//状态 (1正常 2删除)
|
|
|
|
|
@Dict(type="global_status")
|
|
|
|
|
|
|
|
|
|
private Integer teacherOpenCourseChatLogStatus ;
|
|
|
|
|
|
|
|
|
|
//创建时间
|
|
|
|
|
|
|
|
|
|
private Date teacherOpenCourseChatLogAddTime ;
|
|
|
|
|
|
|
|
|
|
//组织ID
|
|
|
|
|
|
|
|
|
|
private Long orgId ;
|
|
|
|
|
|
|
|
|
|
//用户ID
|
|
|
|
|
|
|
|
|
|
private Long userId ;
|
|
|
|
|
|
|
|
|
|
}
|