Ver Fonte

。。。

WANG há 6 anos atrás
pai
commit
42555ebb2c

+ 8 - 1
examcloud-exchange-outer-api-provider/src/main/java/cn/com/qmth/examcloud/exchange/outer/api/controller/sydx/StudentExamInfoController.java

@@ -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);
 		}