From bdb5b994b566f50dd0acac4b02fc697c656fc94e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 21 九月 2023 17:30:57 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
index 3f90a36..69d353b 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
@@ -95,7 +95,7 @@
     @ApiOperation("淇敼璐圭敤鐢宠鏄庣粏")
     //@PreAuthorize("@ss.hasPermi('project:funddetail:edit')")
     @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     @RepeatSubmit
     public AjaxResult edit(@RequestBody ServiceFunddetail serviceFunddetail) {
         return toAjax(serviceFunddetailService.updateById(serviceFunddetail));
@@ -107,7 +107,7 @@
     @ApiOperation("鍒犻櫎璐圭敤鐢宠鏄庣粏")
     //@PreAuthorize("@ss.hasPermi('project:funddetail:remove')")
     @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
+    @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(serviceFunddetailService.removeByIds(Arrays.asList(ids)));
     }
@@ -117,8 +117,7 @@
      * 鍒犻櫎鎶ラ攢鐢宠鏄庣粏骞朵慨鏀归噾棰�
      */
     @ApiOperation("鍒犻櫎鎶ラ攢鐢宠鏄庣粏骞朵慨鏀归噾棰�")
-    @Log(title = "鎶ラ攢鐢宠鏄庣粏", businessType = BusinessType.DELETE)
-    @DeleteMapping("/deleteDetail/{id}")
+    @GetMapping("/deleteDetail/{id}")
     public AjaxResult deleteDetail(@PathVariable Long id) {
         return AjaxResult.success(serviceFunddetailService.deleteDetail(id));
     }
@@ -162,4 +161,10 @@
     public AjaxResult getFundDetail(@PathVariable("id") Long id) {
         return AjaxResult.success(serviceFunddetailService.getFundDetail(id));
     }
+
+    @ApiOperation("鏍规嵁鏉′欢绠楃◣")
+    @PostMapping("/calculateTax")
+    public AjaxResult calculateTax(@RequestBody List<ServiceFunddetail> serviceFunddetails) {
+        return AjaxResult.success(serviceFunddetailService.calculateTax(serviceFunddetails));
+    }
 }

--
Gitblit v1.9.3