diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/question/ExamQuestionServiceImpl.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/question/ExamQuestionServiceImpl.java index 4d5163db..6413429f 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/question/ExamQuestionServiceImpl.java +++ b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/question/ExamQuestionServiceImpl.java @@ -75,6 +75,8 @@ public class ExamQuestionServiceImpl implements IExamQuestionService private ExamKnowledgePointsMapper knowledgePointsMapper; @Autowired private EducationPaperQuMapper educationPaperQuMapper; + @Autowired + private IExamQuestionService examQuestionService; /** * 查询试题(hyc) * @@ -945,6 +947,13 @@ public class ExamQuestionServiceImpl implements IExamQuestionService // 日志记录或跳过处理 System.err.println("ID格式错误:" + e.getMessage()); } + if ("编程题".equals(examQuestion.getSubjectName())) { + examQuestion = examQuestionService.selectExamQuestionByQuId(examQuestion.getQuId()); + } + if ("程序设计".equals(examQuestion.getSubjectName())) { + List answerList = examQuestionService.getPointById(examQuestion.getQuId()); + examQuestion.setAnswerList(answerList); + } } } return examQuestionPageResult;