|
|
|
@ -906,18 +906,32 @@ public class TeacherOpenCourseQuestionSettingService extends CoreBaseService<Tea
|
|
|
|
|
|
|
|
|
|
TeacherOpenCourseQuestionLogQuery logQuery = new TeacherOpenCourseQuestionLogQuery();
|
|
|
|
|
|
|
|
|
|
// 收藏
|
|
|
|
|
if (TUCK_TEST.equals(tuckOrError)) {
|
|
|
|
|
logQuery.setIsTuck(true);
|
|
|
|
|
} else if(ERROR_TEST.equals(tuckOrError)) {
|
|
|
|
|
logQuery.setIsErrorFavorite(true);
|
|
|
|
|
logQuery.setStudentId(studentId);
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionLogStatusPlural("1,2");
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionSettingId(questionSettingId);
|
|
|
|
|
logQuery.setQuestionLogAddType(FINALLY_SUBMIT);
|
|
|
|
|
List<TeacherOpenCourseQuestionLog> list = teacherOpenCourseQuestionLogService.getValuesByQueryNotWithPermission(logQuery);
|
|
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(list)) {
|
|
|
|
|
return BeanUtil.copyToList(list, ResourcesQuestionSnapshot.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
logQuery.setStudentId(studentId);
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionLogStatus(1);
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionSettingId(questionSettingId);
|
|
|
|
|
List<TeacherOpenCourseQuestionLog> list = teacherOpenCourseQuestionLogService.getValuesByQueryNotWithPermission(logQuery);
|
|
|
|
|
// 错题库,本来是一张表管理的。
|
|
|
|
|
else if(ERROR_TEST.equals(tuckOrError)) {
|
|
|
|
|
// logQuery.setIsErrorFavorite(true);
|
|
|
|
|
TeacherOpenCourseQuestionLogWrongQuery wrongQuery = new TeacherOpenCourseQuestionLogWrongQuery();
|
|
|
|
|
wrongQuery.setStudentId(studentId);
|
|
|
|
|
wrongQuery.setTeacherOpenCourseQuestionLogStatus(1);
|
|
|
|
|
wrongQuery.setTeacherOpenCourseQuestionSettingId(questionSettingId);
|
|
|
|
|
List<TeacherOpenCourseQuestionLogWrong> list = teacherOpenCourseQuestionLogWrongService.getValuesByQuery(wrongQuery);
|
|
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(list)) {
|
|
|
|
|
return BeanUtil.copyToList(list, ResourcesQuestionSnapshot.class);
|
|
|
|
|
if (ObjectUtil.isNotEmpty(list)) {
|
|
|
|
|
return BeanUtil.copyToList(list, ResourcesQuestionSnapshot.class);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|