From a88e19be56fab4f06aae0248575b55fed41eaa1e Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 04 一月 2024 09:47:20 +0800
Subject: [PATCH] yxh

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java
index 1691d76..04321d8 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java
@@ -2,6 +2,8 @@
 
 import java.util.Arrays;
 import java.util.List;
+
+import com.ruoyi.common.annotation.NotRepeatCommit;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -79,7 +81,7 @@
     @ApiOperation("鏂板璐圭敤鐢宠涓�")
     @Log(title = "璐圭敤鐢宠涓�", businessType = BusinessType.INSERT)
     @PostMapping
-    @RepeatSubmit
+    @NotRepeatCommit(key = "param:arg[1]", value = 30000)
     public AjaxResult add(@RequestBody ServiceExpertexpense serviceExpertexpense)
     {
         return toAjax(serviceExpertexpenseService.save(serviceExpertexpense));
@@ -90,7 +92,7 @@
      */
     @ApiOperation("淇敼璐圭敤鐢宠涓�")
     @Log(title = "璐圭敤鐢宠涓�", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     @RepeatSubmit    
     public AjaxResult edit(@RequestBody ServiceExpertexpense serviceExpertexpense)
     {
@@ -102,7 +104,7 @@
      */
     @ApiOperation("鍒犻櫎璐圭敤鐢宠涓�")
     @Log(title = "璐圭敤鐢宠涓�", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
+    @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
         return toAjax(serviceExpertexpenseService.removeByIds(Arrays.asList(ids)));

--
Gitblit v1.9.3