|
|
|
@ -10,6 +10,8 @@ import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
|
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.UpdateIgnore;
|
|
|
|
|
import org.beetl.sql.fetch.annotation.Fetch;
|
|
|
|
|
import org.beetl.sql.fetch.annotation.FetchSql;
|
|
|
|
|
|
|
|
|
@ -115,6 +117,8 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
@FetchSql("select count(1) from resources_question_snapshot t " +
|
|
|
|
|
"where t.question_status = 1 " +
|
|
|
|
|
"and t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# ")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private int questionCount;
|
|
|
|
|
|
|
|
|
|
// 平均答对数量
|
|
|
|
@ -122,6 +126,8 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
"from teacher_open_course_question_log t \n" +
|
|
|
|
|
"where t.teacher_open_course_question_log_status = 1 " +
|
|
|
|
|
" AND t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# ")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private Integer avgSuccessCount;
|
|
|
|
|
|
|
|
|
|
// 平均答错数量
|
|
|
|
@ -129,9 +135,13 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
"from teacher_open_course_question_log t \n" +
|
|
|
|
|
"where t.teacher_open_course_question_log_status = 1 " +
|
|
|
|
|
" AND t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# ")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private Integer avgErrorCount;
|
|
|
|
|
|
|
|
|
|
// 平均正确率 100最大
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private float avgSuccessRate;
|
|
|
|
|
|
|
|
|
|
// 平均得分
|
|
|
|
@ -139,6 +149,8 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
"from teacher_open_course_question_log t \n" +
|
|
|
|
|
"where t.teacher_open_course_question_log_status = 1 " +
|
|
|
|
|
" AND t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# ")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private float avgScore;
|
|
|
|
|
|
|
|
|
|
// 关联的班级列表
|
|
|
|
@ -154,6 +166,8 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
"@if(strUtil.equalsIgnoreCase(teacherOpenCourseQuestionSettingId+'', 'ALL')) { \n" +
|
|
|
|
|
"and 1 != 1 \n" +
|
|
|
|
|
"@} \n")
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private String teacherOpenCourseQuestionSettingSchoolClassNames;
|
|
|
|
|
|
|
|
|
|
// 快照ID
|
|
|
|
@ -161,6 +175,8 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity {
|
|
|
|
|
"from resources_question_snapshot t where t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# \n" +
|
|
|
|
|
"and t.question_status = 1 \n"
|
|
|
|
|
)
|
|
|
|
|
@UpdateIgnore
|
|
|
|
|
@InsertIgnore
|
|
|
|
|
private List<ResourcesQuestionSnapshot> resourcesQuestionSnapshotList;
|
|
|
|
|
|
|
|
|
|
public void setAvgSuccessCount(Integer avgSuccessCount) {
|
|
|
|
|