|
|
|
@ -25,6 +25,7 @@ import com.ibeetl.jlw.entity.dto.TeacherOpenCourseHomeWorkLogDTO;
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.FileQuestionLogListVO;
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.TeacherOpenCourseHomeWorkLogExportVO;
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.TeacherOpenCourseQuestionLogAnswerLockVO;
|
|
|
|
|
import com.ibeetl.jlw.enums.GlobalStatusEnum;
|
|
|
|
|
import com.ibeetl.jlw.enums.QuestionLogAddTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.web.query.QuestionLogSummaryQuery;
|
|
|
|
@ -778,13 +779,22 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService<Teacher
|
|
|
|
|
summaryQuery.setPersonId(student.getStudentId());
|
|
|
|
|
summaryQuery.setQuestionSettingId(questionSettingId);
|
|
|
|
|
QuestionLogSummary logSummary = questionLogSummaryService.getInfo(summaryQuery);
|
|
|
|
|
|
|
|
|
|
// 删除之前的题目统计
|
|
|
|
|
if (logSummary != null) {
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryId(logSummary.getQuestionLogSummaryId());
|
|
|
|
|
// questionLogSummary.setQuestionLogSummaryId(logSummary.getQuestionLogSummaryId());
|
|
|
|
|
// 这个学生之前的其他试卷都设置成删除状态。
|
|
|
|
|
QuestionLogSummary updatePO = new QuestionLogSummary();
|
|
|
|
|
updatePO.setQuestionLogSummaryId(logSummary.getQuestionLogSummaryId());
|
|
|
|
|
updatePO.setQuestionLogSummaryStatus(GlobalStatusEnum.DELETED.getCode());
|
|
|
|
|
questionLogSummaryService.updateTemplate(updatePO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新或插入统计数据
|
|
|
|
|
questionLogSummaryService.upsertByTemplate(questionLogSummary);
|
|
|
|
|
// questionLogSummaryService.upsertByTemplate(questionLogSummary);
|
|
|
|
|
|
|
|
|
|
// 插入统计数据
|
|
|
|
|
questionLogSummaryService.insert(questionLogSummary);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|