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/ManageRecordIntervalsController.java | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java index faf687e..5c66147 100644 --- a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java +++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java @@ -12,10 +12,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 org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; @@ -39,7 +36,7 @@ private ManageRecordIntervalsService manageRecordIntervalsService; @ApiOperation(value = "鍒嗛〉鏌ヨ鏂囦欢瀹氭湡瀹℃煡璁板綍") - @PostMapping("/pageManageRecordIntervals") + @GetMapping("/pageManageRecordIntervals") public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); } @@ -58,13 +55,13 @@ } @ApiOperation(value = "鍒犻櫎鏂囦欢瀹氭湡瀹℃煡璁板綍") - @PostMapping("/delManageRecordIntervals") + @DeleteMapping("/delManageRecordIntervals") public Result delManageRecordIntervals(Integer id) { return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); } @ApiOperation(value = "瀵煎嚭鏂囦欢瀹氭湡瀹℃煡璁板綍") - @PostMapping("/exportOutManageRecordIntervals") + @GetMapping("/exportOutManageRecordIntervals") public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); } -- Gitblit v1.9.3