考核删除接口

master
pd 4 years ago
parent 61296d8ad4
commit 04b1a87f8b
  1. 6
      src/main/java/com/yipin/liuwanr/controller/AssesmentController.java

@ -331,7 +331,7 @@ public class AssesmentController {
* @return * @return
*/ */
@GetMapping("/getByclass") @GetMapping("/getByclass")
Response getByclass(Integer assesmentId) { Response getByclass(@RequestParam Integer assesmentId) {
Response resp = new Response(); Response resp = new Response();
if(StringUtils.isEmpty(assesmentId)){ if(StringUtils.isEmpty(assesmentId)){
resp.setStatus(300); resp.setStatus(300);
@ -483,8 +483,8 @@ public class AssesmentController {
return resp; return resp;
} }
@DeleteMapping("/deleteAssesment") @PostMapping("/deleteAssesment")
Response deleteAssesment(@RequestParam Assesment assesment){ Response deleteAssesment(@RequestBody Assesment assesment){
Response resp = new Response(); Response resp = new Response();
Integer assesmentId=assesment.getId(); Integer assesmentId=assesment.getId();
if(StringUtils.isEmpty(assesmentId)){ if(StringUtils.isEmpty(assesmentId)){

Loading…
Cancel
Save