|
@@ -792,6 +792,7 @@ public class QuesServiceImpl implements QuesService {
|
|
public QuestionAnswerBean findQuestionAnswer(String questionId) {
|
|
public QuestionAnswerBean findQuestionAnswer(String questionId) {
|
|
Optional<Question> optional = quesRepo.findById(questionId);
|
|
Optional<Question> optional = quesRepo.findById(questionId);
|
|
if (!optional.isPresent()) {
|
|
if (!optional.isPresent()) {
|
|
|
|
+ log.error("question is not exist, id = {}", questionId);
|
|
throw new StatusException("500", "当前试题已不存在!");
|
|
throw new StatusException("500", "当前试题已不存在!");
|
|
}
|
|
}
|
|
|
|
|