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.security.access.prepost.PreAuthorize;
 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;
 
@@ -67,7 +68,7 @@ public class StudentRepairController extends BaseController {
 
 
     @ApiOperation("维修完成")
-    @GetMapping(value = "/repairSuccess")
+    @PostMapping(value = "/repairSuccess")
     @PreAuthorize("@pcs.hasPermissions('studentRepair/repairSuccess')")
     public HttpResponseResult repairSuccess(Integer id,String description,Integer repairStatus) {
         studentRepairService.repairSuccess(id,description,repairStatus);