diff --git a/web/src/main/java/com/ibeetl/jlw/entity/TeacherOpenCourseQuestionSetting.java b/web/src/main/java/com/ibeetl/jlw/entity/TeacherOpenCourseQuestionSetting.java index 64afcd13..6fe461bc 100644 --- a/web/src/main/java/com/ibeetl/jlw/entity/TeacherOpenCourseQuestionSetting.java +++ b/web/src/main/java/com/ibeetl/jlw/entity/TeacherOpenCourseQuestionSetting.java @@ -119,10 +119,10 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity { /**======================================= 扩展数据 =====================================*/ // 附件题目的得分和评语 - @FetchSql("select t.student_score, t.teacher_open_course_question_log_reply from teacher_open_course_question_log t " + - "where t.teacher_open_course_question_log_status = 1 and t.question_log_add_type = 'FINALLY_SUBMIT' " + - "and t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# " + - "and #teacherOpenCourseQuestionSettingType# = 'HOMEWORK_FILE' ") +// @FetchSql("select t.student_score, t.teacher_open_course_question_log_reply from teacher_open_course_question_log t " + +// "where t.teacher_open_course_question_log_status = 1 and t.question_log_add_type = 'FINALLY_SUBMIT' " + +// "and t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# " + +// "and #teacherOpenCourseQuestionSettingType# = 'HOMEWORK_FILE' ") @UpdateIgnore @InsertIgnore private Map fileQuestionInfo; @@ -190,4 +190,12 @@ public class TeacherOpenCourseQuestionSetting extends BaseEntity { ) private String resourcesQuestionIdPlural; + @UpdateIgnore + @InsertIgnore + @FetchSql("select count(1) " + + "from resources_question_snapshot t where t.teacher_open_course_question_setting_id = #teacherOpenCourseQuestionSettingId# \n" + + "and t.question_status = 1 \n" + ) + private Integer questionCount; + } diff --git a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionSettingService.java b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionSettingService.java index c435dc5a..3e441e4c 100644 --- a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionSettingService.java +++ b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionSettingService.java @@ -251,6 +251,21 @@ public class TeacherOpenCourseQuestionSettingService extends CoreBaseService fileQuestionInfo = new HashMap(); + fileQuestionInfo.put("studentScore", questionLog.getStudentScore().toString()); + fileQuestionInfo.put("teacherOpenCourseQuestionLogReply", questionLog.getTeacherOpenCourseQuestionLogReply()); + item.setFileQuestionInfo(fileQuestionInfo); + } + QuestionLogSummaryQuery logSummaryQuery = new QuestionLogSummaryQuery(); logSummaryQuery.setPersonId(studentId); logSummaryQuery.setQuestionLogSummaryStatus(1); @@ -278,7 +293,6 @@ public class TeacherOpenCourseQuestionSettingService extends CoreBaseService