|
@@ -171,7 +171,14 @@ public class StudentExamInfoController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(failureRecordList)) {
|
|
|
- return new ResponseEntity<Object>(failureRecordList, HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
+ StringBuilder sb = new StringBuilder("\n");
|
|
|
+ for (FailureRecordDomain curD : failureRecordList) {
|
|
|
+ sb.append(curD.getName()).append("[学号:").append(curD.getStudentCode())
|
|
|
+ .append(",课程代码:").append(curD.getCourseCode()).append("]; 错误描述:")
|
|
|
+ .append(curD.getDesc()).append("\n");
|
|
|
+ }
|
|
|
+
|
|
|
+ return new ResponseEntity<Object>(sb.toString(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
} else {
|
|
|
return new ResponseEntity<Object>(examStudentIdList, HttpStatus.OK);
|
|
|
}
|