|
@@ -55,7 +55,7 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
|
|
|
GlobalHelper.getEntity(examRecordDataRepo, examRecordDataId, ExamRecordDataEntity.class);
|
|
|
|
|
|
ExamRecordQuestionsEntity examRecordQuestionsEntity =
|
|
|
- GlobalHelper.getEntity(examRecordQuestionsRepo,examRecordData.getExamRecordQuestionsId(),ExamRecordQuestionsEntity.class);
|
|
|
+ GlobalHelper.getEntity(examRecordQuestionsRepo, examRecordData.getExamRecordQuestionsId(), ExamRecordQuestionsEntity.class);
|
|
|
|
|
|
List<ExamQuestionEntity> examRecordQuestionList = examRecordQuestionsEntity.getExamQuestionEntities();
|
|
|
|
|
@@ -67,8 +67,9 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
|
|
|
@Override
|
|
|
public void saveSubjectiveQuestionScore(Long examRecordDataId, List<SubjectiveQuestionScoreInfo> subjectiveQuestionScoreInfoList) {
|
|
|
ExamRecordDataEntity examRecordData = GlobalHelper.getEntity(examRecordDataRepo, examRecordDataId, ExamRecordDataEntity.class);
|
|
|
- if (ExamType.ONLINE == examRecordData.getExamType() || ExamType.ONLINE_HOMEWORK==examRecordData.getExamType()) {
|
|
|
- ExamRecordQuestionsEntity examRecordQuestionsEntity = examRecordQuestionsRepo.findByExamRecordDataId(examRecordDataId);
|
|
|
+ if (ExamType.ONLINE == examRecordData.getExamType() || ExamType.ONLINE_HOMEWORK == examRecordData.getExamType()) {
|
|
|
+ ExamRecordQuestionsEntity examRecordQuestionsEntity =
|
|
|
+ getExamRecordQuestionsAndFixExamRecordDataIfNecessary(examRecordDataId);
|
|
|
List<ExamQuestionEntity> examRecordQuestionList = examRecordQuestionsEntity.getExamQuestionEntities();
|
|
|
|
|
|
for (SubjectiveQuestionScoreInfo scoreInfo : subjectiveQuestionScoreInfoList) {
|