Accept Merge Request #114: (hyc -> master)
Merge Request: 【修改】编辑试卷列表程序设计增加关键字 Created By: @华允传 Accepted By: @华允传 URL: https://g-iswv8783.coding.net/p/education/d/pengchen-exam-java/git/merge/114?initial=true
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user