|
@@ -208,21 +208,22 @@ public class ObjectiveQuestionExportTask extends AbstractTask {
|
|
|
CetMarking imp = new CetMarking();
|
|
|
String paperType = trimAndNullIfBlank(line.getValue(3));
|
|
|
if (StringUtils.isBlank(paperType)) {
|
|
|
- throw new StatusException(newError(i + 1, "条形码值不能为空"));
|
|
|
+ throw new StatusException(newError(i + 2, "条形码值不能为空"));
|
|
|
}
|
|
|
imp.setPaperType(paperType);
|
|
|
|
|
|
String oddNumber = trimAndNullIfBlank(line.getValue(5));
|
|
|
if (StringUtils.isBlank(oddNumber)) {
|
|
|
- throw new StatusException(newError(i + 1, "奇数考场评卷点代码不能为空"));
|
|
|
+ throw new StatusException(newError(i + 2, "奇数考场评卷点代码不能为空"));
|
|
|
}
|
|
|
imp.setOddNumber(oddNumber);
|
|
|
|
|
|
String evenNumber = trimAndNullIfBlank(line.getValue(7));
|
|
|
if (StringUtils.isBlank(evenNumber)) {
|
|
|
- throw new StatusException(newError(i + 1, "偶数考场评卷点代码不能为空"));
|
|
|
+ throw new StatusException(newError(i + 2, "偶数考场评卷点代码不能为空"));
|
|
|
}
|
|
|
imp.setEvenNumber(evenNumber);
|
|
|
+ list.add(imp);
|
|
|
|
|
|
}
|
|
|
if (list.size() == 0) {
|