|
@@ -616,6 +616,16 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
|
|
|
|
|
|
StringJoiner errorMsg = new StringJoiner(";");
|
|
|
+
|
|
|
+ //设置成绩
|
|
|
+ if (StringUtils.isNotEmpty(examStudentImport.getScore())) {
|
|
|
+ try {
|
|
|
+ Double score = Double.parseDouble(examStudentImport.getScore());
|
|
|
+ examStudent.setScore(score);
|
|
|
+ } catch (NumberFormatException e) {
|
|
|
+ errorMsg.add("成绩必须是数字");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (StringUtils.isBlank(examStudent.getStudentCode())) {
|
|
|
errorMsg.add("学号必填");
|
|
|
}
|