zouxuan преди 4 години
родител
ревизия
8d2b65221e
променени са 1 файла, в които са добавени 2 реда и са изтрити 5 реда
  1. 2 5
      mec-student/src/main/java/com/ym/mec/student/controller/ReplacementInstrumentActivityController.java

+ 2 - 5
mec-student/src/main/java/com/ym/mec/student/controller/ReplacementInstrumentActivityController.java

@@ -18,10 +18,7 @@ import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RequestMapping("replacementInstrumentActivity")
 @Api(tags = "乐器置换调查问卷")
@@ -43,7 +40,7 @@ public class ReplacementInstrumentActivityController extends BaseController {
 
     @ApiOperation(value = "新版新增调查问卷")
     @PostMapping("/apply")
-    public Object apply(ReplacementInstrumentActivityDto replacementInstrumentActivityDto) {
+    public Object apply(@RequestBody ReplacementInstrumentActivityDto replacementInstrumentActivityDto) {
         return succeed(replacementInstrumentActivityService.apply(replacementInstrumentActivityDto));
     }