【修改】编辑试卷列表程序设计增加关键字

This commit is contained in:
YOHO\20373
2025-06-11 16:23:09 +08:00
parent 8df06f4f07
commit 99c1453732

View File

@@ -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<ExamQuestionAnswer> answerList = examQuestionService.getPointById(examQuestion.getQuId());
examQuestion.setAnswerList(answerList);
}
}
}
return examQuestionPageResult;