|
|
|
@ -1181,13 +1181,13 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService<Teacher
|
|
|
|
|
TeacherOpenCourseQuestionLogQuery logQuery = new TeacherOpenCourseQuestionLogQuery();
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionLogId(questionLogId);
|
|
|
|
|
logQuery.setQuestionLogAddType(FINALLY_SUBMIT);
|
|
|
|
|
logQuery.setTeacherOpenCourseQuestionLogStatusPlural("1,2");
|
|
|
|
|
List<TeacherOpenCourseQuestionLog> logList = getValuesByQueryNotWithPermission(logQuery);
|
|
|
|
|
|
|
|
|
|
Optional<TeacherOpenCourseQuestionLog> optional = logList.stream().filter(item -> item.getIsTuck() || item.getIsErrorFavorite()).findFirst();
|
|
|
|
|
TeacherOpenCourseQuestionLog questionLog = optional.get();
|
|
|
|
|
|
|
|
|
|
if (questionLog != null) {
|
|
|
|
|
return new TuckOrErrorListQuestionAnswer(questionLog.getQuestionAnswer(), questionLog.getQuestionAnalysis());
|
|
|
|
|
if (optional.isPresent()) {
|
|
|
|
|
return new TuckOrErrorListQuestionAnswer(optional.get().getQuestionAnswer(), optional.get().getQuestionAnalysis());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|