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)){