zouxuan 5 年之前
父節點
當前提交
972df869a8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mec-web/src/main/java/com/ym/mec/web/controller/StudentRepairController.java

+ 2 - 1
mec-web/src/main/java/com/ym/mec/web/controller/StudentRepairController.java

@@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.HttpStatus;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.GetMapping;
 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.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
 
 
@@ -67,7 +68,7 @@ public class StudentRepairController extends BaseController {
 
 
 
 
     @ApiOperation("维修完成")
     @ApiOperation("维修完成")
-    @GetMapping(value = "/repairSuccess")
+    @PostMapping(value = "/repairSuccess")
     @PreAuthorize("@pcs.hasPermissions('studentRepair/repairSuccess')")
     @PreAuthorize("@pcs.hasPermissions('studentRepair/repairSuccess')")
     public HttpResponseResult repairSuccess(Integer id,String description,Integer repairStatus) {
     public HttpResponseResult repairSuccess(Integer id,String description,Integer repairStatus) {
         studentRepairService.repairSuccess(id,description,repairStatus);
         studentRepairService.repairSuccess(id,description,repairStatus);