浏览代码

错误逻辑修改

weiwenhai 7 年之前
父节点
当前提交
8a68e0df4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cqb-paper/src/main/java/com/qmth/cqb/paper/service/ImportPaperService.java

+ 1 - 1
cqb-paper/src/main/java/com/qmth/cqb/paper/service/ImportPaperService.java

@@ -565,7 +565,7 @@ public class ImportPaperService {
                 }
                 importPaperCheck.setQuesCount(getContent(tmpText,ImportPaperMsg.questionNum_word));
             } else if (tmpText.startsWith(ImportPaperMsg.score_word)) {
-            	if(!CommonUtils.isInteger(getContent(tmpText,ImportPaperMsg.questionNum_word))){
+            	if(!CommonUtils.isInteger(getContent(tmpText,ImportPaperMsg.score_word))){
             		importPaperCheck.setErrorInfo("[分数]的格式不正确");
                 	throw new PaperException(importPaperCheck.errorInfo);
             	}