From 98154abb1b191d8a353417709ea1afc9984e1864 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期五, 21 二月 2025 11:21:56 +0800
Subject: [PATCH] 修改所有的请求方式

---
 cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java
index 34f4786..bb5addd 100644
--- a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java
+++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java
@@ -11,10 +11,7 @@
 import com.deepoove.poi.data.style.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import java.util.Map;
@@ -36,20 +33,23 @@
     private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService;
 
     @ApiOperation(value = "鏌ヨ鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃")
-    @PostMapping("/pageManageRecordIntervalsTotal")
+    @GetMapping("/pageManageRecordIntervalsTotal")
     public Result pageManageRecordIntervalsTotal(Page page,ManageRecordIntervalsTotal manageRecordIntervalsTotal) throws Exception {
         return Result.success(manageRecordIntervalsTotalService.pageManageRecordIntervalsTotal(page, manageRecordIntervalsTotal));
     }
 
     @ApiOperation(value = "鎻愪氦鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃")
     @PostMapping("/submitManageRecordIntervalsTotal")
-    public Result submitManageRecordIntervalsTotal(Integer id) {
+    public Result submitManageRecordIntervalsTotal(@RequestBody Map<String, Integer> param) {
+        Integer id = param.get("id");
         return Result.success(manageRecordIntervalsTotalService.submitManageRecordIntervalsTotal(id));
     }
 
     @ApiOperation(value = "鎵瑰噯鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃")
     @PostMapping("/ratifyManageRecordIntervalsTotal")
-    public Result ratifyManageRecordIntervalsTotal(Integer id, String ratifyState) {
+    public Result ratifyManageRecordIntervalsTotal(@RequestBody Map<String, Object> param) {
+        Integer id = (Integer) param.get("id");
+        String ratifyState = (String) param.get("ratifyState");
         return Result.success(manageRecordIntervalsTotalService.ratifyManageRecordIntervalsTotal(id, ratifyState));
     }
 

--
Gitblit v1.9.3