bug修复
This commit is contained in:
parent
dc08efbaba
commit
882e5afa5d
@ -7,5 +7,5 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("student")
|
||||
public class StudentController {
|
||||
|
||||
public
|
||||
//public
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public class CalculationService {
|
||||
* @return 计算好的学分绩
|
||||
*/
|
||||
public float calculateGPA(int studentId){
|
||||
if(checkStudentExistence(studentId)){
|
||||
if(!checkStudentExistence(studentId)){
|
||||
throw new NotFoundException("No such student.");
|
||||
}
|
||||
List<StudentCourse> studentCourses = studentCourseRepository.findByStudentId(studentId);
|
||||
|
Loading…
Reference in New Issue
Block a user