|
@@ -254,7 +254,7 @@ public class ImportPaperService {
|
|
|
processQuesOption(pList, importPaperCheck.index, subQuesNum, question, importPaperCheck,tmpWordMlPackage);
|
|
|
// 处理尾信息
|
|
|
processQuesTail(pList, importPaperCheck.index, subQuesNum, question, paperDetailUnit,importPaperCheck, tmpWordMlPackage, false);
|
|
|
- //处理选择题的option
|
|
|
+ //处理选择题的option--chenken 20170425
|
|
|
processSelectOption(question);
|
|
|
} else if (importPaperCheck.quesType.equals("套题")) {
|
|
|
// 处理套题
|
|
@@ -606,7 +606,8 @@ public class ImportPaperService {
|
|
|
// 校验答案
|
|
|
if (answerHTML.length() > 0) {
|
|
|
//选择题过滤html标签--chenken 2017.4.25
|
|
|
- if (importPaperCheck.quesType.equals("单选") || importPaperCheck.quesType.equals("多选")){
|
|
|
+ if (question.getQuestionType()==QuesStructType.SINGLE_ANSWER_QUESTION||
|
|
|
+ question.getQuestionType()==QuesStructType.MULTIPLE_ANSWER_QUESTION){
|
|
|
String regEx_html="<[^>]+>";
|
|
|
Pattern p_html=Pattern.compile(regEx_html,Pattern.CASE_INSENSITIVE);
|
|
|
Matcher m_html=p_html.matcher(answerHTML.toString()); //过滤html标签
|
|
@@ -716,6 +717,9 @@ public class ImportPaperService {
|
|
|
// 处理尾信息
|
|
|
processQuesTail(pList, importPaperCheck.index, subQuesNum, subQues, paperDetailUnit,
|
|
|
importPaperCheck, wordMLPackage, true);
|
|
|
+
|
|
|
+ //处理选择题的option--chenken 20170426
|
|
|
+ processSelectOption(subQues);
|
|
|
|
|
|
} else {
|
|
|
// 处理其他题型
|