|
@@ -162,7 +162,7 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
String result = pageEntity.getQuestion().getResult().get(i);
|
|
String result = pageEntity.getQuestion().getResult().get(i);
|
|
MarkQuestion question = questionList.get(i);
|
|
MarkQuestion question = questionList.get(i);
|
|
//单选题若开启配置,仅有一个选项的不参与识别对照
|
|
//单选题若开启配置,仅有一个选项的不参与识别对照
|
|
- String answer = result.replaceAll("\\?","");
|
|
|
|
|
|
+ String answer = result.replace("?","");
|
|
if (question.getQuestionType().equals(QuestionType.SINGLE.getValue()) && enableObjectiveOmr && answer.length()==1){
|
|
if (question.getQuestionType().equals(QuestionType.SINGLE.getValue()) && enableObjectiveOmr && answer.length()==1){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|