From 28d9d2571b4544edb974751479224937dc5e5f58 Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期五, 26 七月 2024 09:02:27 +0800 Subject: [PATCH] 森林防火 供应商管理 --- ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 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..d579ac1 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,16 @@ @ApiOperation("删除仓库管理") @DeleteMapping("/{id}") public R<?> delStoreManagement( - @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Integer id) { - slStoreManagementService.removeById(id); + @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Long id) { + SlStoreManagement byId = slStoreManagementService.getById(id); + byId.setDelFlag("1"); + slStoreManagementService.updateById(byId); 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