From 7d188cc913d5ea547c5e99ae434ea3b1cf4e818a Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 15 八月 2025 09:00:41 +0800
Subject: [PATCH] 仓库货架业务流程修改

---
 src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesRowcolController.java |   61 ++++++++++++++++--------------
 1 files changed, 32 insertions(+), 29 deletions(-)

diff --git a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesRowcolController.java b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesRowcolController.java
index a0c7479..8f6c136 100644
--- a/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesRowcolController.java
+++ b/src/main/java/com/ruoyi/warehouse/controller/WarehouseGoodsShelvesRowcolController.java
@@ -25,36 +25,39 @@
     private WarehouseGoodsShelvesRowcolService warehouseGoodsShelvesRowcolService;
     @Autowired
     private WarehouseGoodsShelvesRowcolMapper warehouseGoodsShelvesRowcolMapper;
-
-    @GetMapping("/listPage")
-    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鍒嗛〉鏌ヨ")
-    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
-    public AjaxResult listPage(Page page, WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
-        IPage<WarehouseGoodsShelvesRowcol> listPage = warehouseGoodsShelvesRowcolService.listPage(page, warehouseGoodsShelvesRowcol);
-        return AjaxResult.success(listPage);
+    @GetMapping("/list")
+    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鏌ヨ")
+    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鏌ヨ", businessType = BusinessType.OTHER)
+    public AjaxResult list() {
+        List<WarehouseGoodsShelvesRowcol> list = warehouseGoodsShelvesRowcolService.list();
+        return AjaxResult.success(list);
     }
-    @PostMapping("/add")
-    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-娣诲姞")
-    @Log(title = "鍟嗗搧璐ф灦琛屽垪-娣诲姞", businessType = BusinessType.INSERT)
-    public AjaxResult add(@RequestBody WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
-        boolean save = warehouseGoodsShelvesRowcolService.save(warehouseGoodsShelvesRowcol);
-        return save ? AjaxResult.success("娣诲姞鎴愬姛") : AjaxResult.error("娣诲姞澶辫触");
-    }
-    @PostMapping("/update")
-    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鏇存柊")
-    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鏇存柊", businessType = BusinessType.UPDATE)
-    public AjaxResult update(@RequestBody WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
-        boolean up = warehouseGoodsShelvesRowcolService.updateById(warehouseGoodsShelvesRowcol);
-        return up ? AjaxResult.success("鏇存柊鎴愬姛") : AjaxResult.error("鏇存柊澶辫触");
-    }
-    @PostMapping("/delete")
-    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鍒犻櫎")
-    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鍒犻櫎", businessType = BusinessType.DELETE)
-    public AjaxResult delete(@RequestBody List<Long> ids) {
-        if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
-        boolean remove = warehouseGoodsShelvesRowcolService.deleteByIds(ids);
-        return remove ? AjaxResult.success("鍒犻櫎鎴愬姛") : AjaxResult.error("鍒犻櫎澶辫触");
-    }
+//    @GetMapping("/listPage")
+//    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鍒嗛〉鏌ヨ")
+//    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
+//    public AjaxResult listPage(Page page, WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
+//        IPage<WarehouseGoodsShelvesRowcol> listPage = warehouseGoodsShelvesRowcolService.listPage(page, warehouseGoodsShelvesRowcol);
+//        return AjaxResult.success(listPage);
+//    }
+//    @PostMapping("/add")
+//    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-娣诲姞")
+//    @Log(title = "鍟嗗搧璐ф灦琛屽垪-娣诲姞", businessType = BusinessType.INSERT)
+//    public AjaxResult add(@RequestBody WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
+//        return AjaxResult.success(warehouseGoodsShelvesRowcolService.save(warehouseGoodsShelvesRowcol));
+//    }
+//    @PostMapping("/update")
+//    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鏇存柊")
+//    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鏇存柊", businessType = BusinessType.UPDATE)
+//    public AjaxResult update(@RequestBody WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) {
+//        return AjaxResult.success(warehouseGoodsShelvesRowcolService.updateById(warehouseGoodsShelvesRowcol));
+//    }
+//    @PostMapping("/delete")
+//    @ApiOperation("鍟嗗搧璐ф灦琛屽垪-鍒犻櫎")
+//    @Log(title = "鍟嗗搧璐ф灦琛屽垪-鍒犻櫎", businessType = BusinessType.DELETE)
+//    public AjaxResult delete(@RequestBody List<Long> ids) {
+//        if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
+//        return AjaxResult.success(warehouseGoodsShelvesRowcolService.removeByIds(ids));
+//    }
 
 
 }

--
Gitblit v1.9.3