From 7661cf3c3725cd3a9057625ea4a5f1add9001f25 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 15 八月 2025 09:40:14 +0800
Subject: [PATCH] feat: 仓库货架修改

---
 src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
index 64eefd2..41dcdf8 100644
--- a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
+++ b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesController.java
@@ -23,13 +23,6 @@
 public class WarehouseGoodsShelvesController extends BaseController {
     @Autowired
     private WarehouseGoodsShelvesService warehouseGoodsShelvesService;
-    @GetMapping("/listPage")
-    @ApiOperation("鍟嗗搧璐ф灦-鍒嗛〉鏌ヨ")
-    @Log(title = "鍟嗗搧璐ф灦-鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
-    public AjaxResult listPage(Page page, WarehouseGoodsShelves warehouseGoodsShelves) {
-        IPage<WarehouseGoodsShelves> listPage = warehouseGoodsShelvesService.listPage(page, warehouseGoodsShelves);
-        return AjaxResult.success(listPage);
-    }
 
     @GetMapping("/listById")
     @ApiOperation("鍟嗗搧璐ф灦-鏌ヨ")
@@ -43,22 +36,19 @@
     @ApiOperation("鍟嗗搧璐ф灦-娣诲姞")
     @Log(title = "鍟嗗搧璐ф灦-娣诲姞", businessType = BusinessType.INSERT)
     public AjaxResult add(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
-        boolean save = warehouseGoodsShelvesService.add(warehouseGoodsShelves);
-        return save ? AjaxResult.success("娣诲姞鎴愬姛") : AjaxResult.error("娣诲姞澶辫触");
+        return AjaxResult.success(warehouseGoodsShelvesService.add(warehouseGoodsShelves));
     }
     @PostMapping("/update")
     @ApiOperation("鍟嗗搧璐ф灦-鏇存柊")
     @Log(title = "鍟嗗搧璐ф灦-鏇存柊", businessType = BusinessType.UPDATE)
     public AjaxResult update(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) {
-        boolean update = warehouseGoodsShelvesService.updateRowcolById(warehouseGoodsShelves);
-        return update ? AjaxResult.success("鏇存柊鎴愬姛") : AjaxResult.error("鏇存柊澶辫触");
+        return AjaxResult.success(warehouseGoodsShelvesService.updateRowcolById(warehouseGoodsShelves));
     }
     @DeleteMapping("/delete")
     @ApiOperation("鍟嗗搧璐ф灦-鍒犻櫎")
     @Log(title = "鍟嗗搧璐ф灦-鍒犻櫎", businessType = BusinessType.DELETE)
     public AjaxResult delete(@RequestBody List<Long> ids) {
         if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
-        boolean remove = warehouseGoodsShelvesService.deleteByIds(ids);
-        return remove ? AjaxResult.success("鍒犻櫎鎴愬姛") : AjaxResult.error("鍒犻櫎澶辫触");
+        return  AjaxResult.success(warehouseGoodsShelvesService.deleteByIds(ids));
     }
 }

--
Gitblit v1.9.3