From 3fa04e2d1e41455b84b1bba63429a4513f44e74e Mon Sep 17 00:00:00 2001
From: rentaiming <806181062@qq.com>
Date: 星期一, 22 七月 2024 19:01:57 +0800
Subject: [PATCH] 森林防火 供应商管理

---
 ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java b/ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java
index 71697bd..7404f81 100644
--- a/ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java
+++ b/ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java
@@ -8,6 +8,7 @@
 import com.ruoyi.management.domain.dto.StoreManagementDTO;
 import com.ruoyi.management.domain.dto.StoreManagementQuery;
 import com.ruoyi.management.service.SlStoreManagementService;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
 import org.springframework.web.bind.annotation.*;
@@ -25,6 +26,7 @@
  */
 @RestController
 @RequestMapping("/sl-store-management")
+@Api(value = "仓库管理接口", tags = "仓库管理接口", description = "仓库管理接口")
 public class SlStoreManagementController {
     @Resource
     private SlStoreManagementService slStoreManagementService;
@@ -45,14 +47,14 @@
     @ApiOperation("删除仓库管理")
     @DeleteMapping("/{id}")
     public R<?> delStoreManagement(
-            @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Integer id) {
+            @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Long id) {
         slStoreManagementService.removeById(id);
         return R.ok();
     }
 
-    @PostMapping("/getStoreManagementOne")
+    @GetMapping("/getStoreManagementOne/{id}")
     @ApiOperation(value = "仓库管理詳情")
-    public R<SlStoreManagement> getStoreManagementOne( @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Integer id) {
+    public R<SlStoreManagement> getStoreManagementOne( @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Long id) {
         return R.ok(slStoreManagementService.getById(id));
     }
 

--
Gitblit v1.7.1