From b51e3b3d5bb721cec65952498d1c2c882d1a01d6 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 15 十二月 2025 17:14:22 +0800
Subject: [PATCH] wms功能完善

---
 src/main/java/com/zy/asrs/controller/MobileController.java |   61 +++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index 6a9a1e9..6b3224b 100644
--- a/src/main/java/com/zy/asrs/controller/MobileController.java
+++ b/src/main/java/com/zy/asrs/controller/MobileController.java
@@ -16,6 +16,7 @@
 import com.zy.asrs.utils.OrderInAndOutUtil;
 import com.zy.common.model.WrkDto;
 import com.zy.common.web.BaseController;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.bind.annotation.*;
@@ -58,6 +59,21 @@
 
     @Resource
     private StaDescService staDescService;
+
+    // 閫�绌烘墭鐩樿繑鍥炰骇绾� pda涓婃搷浣滅┖鎵樿繑鍥炰骇绾�(鍒�鏋惰繑鍥�)
+    @GetMapping("/djReturn/auth")
+    public R tkt(@RequestParam String djNo){
+        return mobileService.djReturn(djNo);
+    }
+
+    @RequestMapping("/comb/auth")
+    @ManagerAuth(memo = "缁勬墭")
+    public R comb(@RequestBody CombParam combParam){
+        mobileService.comb(combParam, getUserId());
+        return R.ok("缁勬墭鎴愬姛");
+    }
+
+    // 杈撻�佺嚎娴佸姩
 
     @RequestMapping("/pda/WarehouseOut/v1")
     @ManagerAuth(memo = "骞舵澘閫斾腑鎷f枡-鍙傝�冨康鍒�")
@@ -122,6 +138,15 @@
         return mobileService.pickMats(matnr, orderNo);
     }
 
+    @PostMapping("/scan/order/mats")
+    @ManagerAuth(memo = "鎵爜鑾峰彇缁勬墭鐗╂枡")
+    public R scanMats(@RequestBody PakinMatsByQRParams params) {
+        if (Objects.isNull(params)) {
+            return R.parse("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.getMatsByQRcode(params);
+    }
+
     // 鍟嗗搧涓婃灦
     @RequestMapping("/mat/onSale/auth")
     @ManagerAuth
@@ -137,6 +162,35 @@
         return R.ok("涓嬫灦鎴愬姛");
     }
 
+
+    @GetMapping("/cache/locs")
+    @ManagerAuth
+    @ApiOperation("鑾峰彇缂撳瓨鍖哄簱浣嶄俊鎭�")
+    public R getCacheLocs() {
+        return mobileService.getCacheLocs();
+    }
+
+
+    @PostMapping("/cache/agv/call")
+    @ApiOperation("鍛煎彨AGV鎼繍")
+    @ManagerAuth
+    public R callAgvMove(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.callAgvMove(params, getUserId());
+    }
+
+
+    @PostMapping("/cache/out/call")
+    @ApiOperation("鍛煎彨AGV鎼繍")
+    @ManagerAuth
+    public R OutCallAgv(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.OutCallAgv(params, getUserId());
+    }
 
 
     // 缁勬墭 ----------------------------------------------------------------------------------------------------
@@ -212,12 +266,7 @@
         return R.ok().add(combParams);
     }
 
-    @RequestMapping("/comb/auth")
-    @ManagerAuth(memo = "缁勬墭")
-    public R comb(@RequestBody CombParam combParam){
-        mobileService.comb(combParam, getUserId());
-        return R.ok("缁勬墭鎴愬姛");
-    }
+
 
     @RequestMapping("/pack/get/auth")
     @ManagerAuth

--
Gitblit v1.9.1