|
@@ -161,8 +161,8 @@ public class ExamStudentApi {
|
|
|
|
|
|
@ApiOperation(value = "按ID查询考试学生", notes = "ID查询")
|
|
|
@GetMapping("/{id}")
|
|
|
- public ResponseEntity<ExamStudent> getExamStudentById(@PathVariable Long id) {
|
|
|
- return new ResponseEntity<ExamStudent>(examStudentRepo.findOne(id), HttpStatus.OK);
|
|
|
+ public ResponseEntity getExamStudentById(@PathVariable Long id) {
|
|
|
+ return new ResponseEntity(examStudentService.findById(id), HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增考试学生", notes = "新增")
|