|
@@ -262,7 +262,7 @@ public class TCUsualScoreController {
|
|
}
|
|
}
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
- if (excelFieldList.size() == 2) {
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(excelFieldList)) {
|
|
throw ExceptionResultEnum.ERROR.exception("未设置评价方式,请在课程考核设置先设置评价方式再下载平时成绩导入模版");
|
|
throw ExceptionResultEnum.ERROR.exception("未设置评价方式,请在课程考核设置先设置评价方式再下载平时成绩导入模版");
|
|
}
|
|
}
|
|
return excelFieldList;
|
|
return excelFieldList;
|