From 04b1a87f8bae05b22a06c2e06d5450340d78b24b Mon Sep 17 00:00:00 2001 From: pd <2776455882@qq.com> Date: Fri, 31 Jul 2020 18:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E5=88=A0=E9=99=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yipin/liuwanr/controller/AssesmentController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/controller/AssesmentController.java b/src/main/java/com/yipin/liuwanr/controller/AssesmentController.java index a387e72..e11a9f4 100644 --- a/src/main/java/com/yipin/liuwanr/controller/AssesmentController.java +++ b/src/main/java/com/yipin/liuwanr/controller/AssesmentController.java @@ -331,7 +331,7 @@ public class AssesmentController { * @return */ @GetMapping("/getByclass") - Response getByclass(Integer assesmentId) { + Response getByclass(@RequestParam Integer assesmentId) { Response resp = new Response(); if(StringUtils.isEmpty(assesmentId)){ resp.setStatus(300); @@ -483,8 +483,8 @@ public class AssesmentController { return resp; } - @DeleteMapping("/deleteAssesment") - Response deleteAssesment(@RequestParam Assesment assesment){ + @PostMapping("/deleteAssesment") + Response deleteAssesment(@RequestBody Assesment assesment){ Response resp = new Response(); Integer assesmentId=assesment.getId(); if(StringUtils.isEmpty(assesmentId)){