From 882e5afa5d577d2554b9cc71f6645bedc9af4837 Mon Sep 17 00:00:00 2001 From: chuyan <1047381936@qq.com> Date: Fri, 11 Sep 2020 21:00:10 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codesdream/ase/controller/student/StudentController.java | 2 +- .../java/com/codesdream/ase/service/CalculationService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/codesdream/ase/controller/student/StudentController.java b/src/main/java/com/codesdream/ase/controller/student/StudentController.java index c3c61a5..38f0205 100644 --- a/src/main/java/com/codesdream/ase/controller/student/StudentController.java +++ b/src/main/java/com/codesdream/ase/controller/student/StudentController.java @@ -7,5 +7,5 @@ import org.springframework.web.bind.annotation.RestController; @RequestMapping("student") public class StudentController { - public + //public } diff --git a/src/main/java/com/codesdream/ase/service/CalculationService.java b/src/main/java/com/codesdream/ase/service/CalculationService.java index d4228d9..292fcd1 100644 --- a/src/main/java/com/codesdream/ase/service/CalculationService.java +++ b/src/main/java/com/codesdream/ase/service/CalculationService.java @@ -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 studentCourses = studentCourseRepository.findByStudentId(studentId);