|
@@ -1234,6 +1234,11 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
strContent = "";
|
|
|
}
|
|
|
nowPart = 7;
|
|
|
+ if(Validator.isNotEmpty(answerQuestion)){
|
|
|
+ analysisContent = analysisContent + "<br />" + content + "<br />";
|
|
|
+ }else{
|
|
|
+ answerQuestion = content.replace("正确答案:", "");
|
|
|
+ }
|
|
|
if (isOption) {
|
|
|
//选择题
|
|
|
answerQuestion = dealImportAnswer(answerQuestion);
|
|
@@ -1252,7 +1257,6 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
} else {
|
|
|
answerQuestion = null;
|
|
|
type = 5; //简答题
|
|
|
- analysisContent = analysisContent + "<br />" + content; //答案文本
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1610,7 +1614,12 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
if(nowPart!=7){
|
|
|
strContent = "";
|
|
|
}
|
|
|
- answerQuestion = content.replace("正确答案:", "");
|
|
|
+ if(Validator.isNotEmpty(answerQuestion)){
|
|
|
+ analysisContent = analysisContent + "<br />" + content + "<br />";
|
|
|
+ }else{
|
|
|
+ answerQuestion = content.replace("正确答案:", "");
|
|
|
+ }
|
|
|
+
|
|
|
nowPart = 7;
|
|
|
if (isOption) {
|
|
|
//选择题
|
|
@@ -1630,7 +1639,6 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
} else {
|
|
|
answerQuestion = null;
|
|
|
type = 5; //简答题
|
|
|
- analysisContent = analysisContent + "<br />" + content; //答案文本
|
|
|
}
|
|
|
}
|
|
|
|