|
|
@@ -7,10 +7,7 @@ import cn.seecoder.judgement.vo.JudgedAnswersVO;
|
|
|
import cn.seecoder.judgement.vo.question.BaseQuestionVO;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
/**
|
|
|
@@ -26,6 +23,7 @@ public class JudgementServiceImpl implements JudgementService {
|
|
|
}
|
|
|
@Override
|
|
|
public JudgedAnswersVO submitQuestionsStudentAnswer(StudentAnswerDTO studentAnswerDTO) {
|
|
|
+ System.out.println(new Date());
|
|
|
System.out.println("start judging, students'answers are:");
|
|
|
System.out.println(studentAnswerDTO);
|
|
|
Map<String, StudentAnswerDTO.AnswerRecordDTO> records = studentAnswerDTO.getRecords();
|
|
|
@@ -46,7 +44,9 @@ public class JudgementServiceImpl implements JudgementService {
|
|
|
}
|
|
|
judgedAnswers.put(questionId, JudgedAnswersVO.QuestionStudentAnswerInfo.of(questionId, answer, isTrue));
|
|
|
});
|
|
|
-
|
|
|
- return new JudgedAnswersVO(judgedAnswers);
|
|
|
+ JudgedAnswersVO res = new JudgedAnswersVO(judgedAnswers);
|
|
|
+ System.out.println("results are as follows:");
|
|
|
+ System.out.println(res);
|
|
|
+ return res;
|
|
|
}
|
|
|
}
|