From d55a512c442dc258b0c78e519a997d4f1c614b00 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期四, 02 四月 2026 10:24:16 +0800
Subject: [PATCH] no message

---
 src/main/java/com/zy/asrs/controller/MobileController.java |  106 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 103 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index 4b3cb11..b1f24d1 100644
--- a/src/main/java/com/zy/asrs/controller/MobileController.java
+++ b/src/main/java/com/zy/asrs/controller/MobileController.java
@@ -86,9 +86,25 @@
         return mobileService.collectionPakin(params, getUserId());
     }
 
+    /**
+     * 鍛煎彨绌烘澘
+     * @author Ryan
+     * @date 2026/4/1 16:24
+     * @param params
+     * @return com.core.common.R
+     */
     @PostMapping("/agv/callEmptyCar")
     @ManagerAuth
     public R pdaAgvFinishedCall(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(params.getOrgSite())) {
+            return R.error("璧峰搴撳尯涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(params.getTarSite())) {
+            return R.error("鐩爣绔欑偣涓嶈兘涓虹┖锛侊紒");
+        }
         return mobileService.callEmptyCar(params, getUserId());
     }
 
@@ -185,6 +201,15 @@
     @ApiOperation("鑾峰彇缂撳瓨鍖哄簱浣嶄俊鎭�")
     public R getCacheLocs() {
         return mobileService.getCacheLocs();
+    }
+
+
+    @ManagerAuth
+    @GetMapping("/cache/sites/{type}")
+    @ApiOperation("鑾峰彇缂撳瓨鍖哄叆鍑哄簱绔欑偣淇℃伅")
+    public R getCacheSites(@PathVariable String type) {
+        return mobileService.getCacheSites(type);
+
     }
 
     @PostMapping("/cache/agv/call")
@@ -352,6 +377,81 @@
     }
 
     /**
+     * 绌烘澘鍑哄簱
+     * @param params
+     * @return
+     */
+    @RequestMapping("/empty/call/out")
+    public R getEmptyOut(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.getEmptyOutStock(params);
+    }
+
+    /**
+     *
+     * 鑾峰彇鎹嗗寘鍑哄簱鏄庣粏
+     * @param params
+     * @return
+     */
+    @ManagerAuth(memo = "鑾峰彇鎹嗗寘鏄庣粏淇℃伅")
+    @RequestMapping("/agv/bind/info")
+    public R getAllBind(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖!!");
+        }
+        return mobileService.getAllBindInfo(params);
+    }
+
+    @ManagerAuth(memo = "鑾峰彇鍙版墍鏈夋槑缁�")
+    @RequestMapping("/agv/tc/all")
+    public R getTCAllMatnrs(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params) || Cools.isEmpty(params.getCarBarcode())) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.getTcAllInfos(params);
+    }
+
+    @ManagerAuth(memo = "纭鍙拌溅鍑哄簱")
+    @RequestMapping("/confirm/all/out")
+    public R confirmAllOut(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params) || Objects.isNull(params.getCarBarcode())) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.outStockByTc(params);
+    }
+
+    @ManagerAuth(memo = "鑾峰彇绔欑偣瑙g粦淇℃伅")
+    @RequestMapping("/site/unbind")
+    public R getStationInfos(@RequestBody AgvCallParams params) {
+        if (Objects.isNull(params) || Objects.isNull(params.getCarBarcode())) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.getStationInfos(params);
+    }
+
+    @ManagerAuth(memo = "绔欑偣鐗╂枡瑙g粦")
+    @RequestMapping("/unbind/site/matnr")
+    public R unbindMatnr(@RequestBody CombParam params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return mobileService.unbindMatnr(params);
+    }
+
+    @ApiOperation("纭鎹嗗寘鍑哄簱")
+    @ManagerAuth(memo = "纭鎹嗗寘鍑哄簱")
+    @RequestMapping("/agv/out/confirm")
+    public R confirmOutStock(@RequestBody CombParam combParam) {
+        if (Objects.isNull(combParam)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖!!");
+        }
+
+        return mobileService.confirmOutstock(combParam);
+    }
+
+    /**
      * @author Ryan
      * @date 2025/9/24
      * @description: 鍛煎彨AGV杩斿洖
@@ -363,9 +463,10 @@
         if (Objects.isNull(callAgvBackParam.getOrgSite())) {
             return R.error("鍙傛暟涓嶈兘涓虹┖!!");
         }
-    
        return mobileService.agvCallback(callAgvBackParam, getUserId());
     }
+
+
 
 
     @ManagerAuth(memo = "缂撳啿搴撶‘璁や笂鏋�(妯℃嫙鐗╃悊鎸夐挳)")
@@ -374,8 +475,7 @@
         if (Objects.isNull(combParam)) {
             return R.error("鍙傛暟涓嶈兘涓虹┖!!");
         }
-        mobileService.combInPub(combParam, 10031L);
-        return R.ok("涓婃灦鎴愬姛");
+       return mobileService.combInPub(combParam, 10031L);
     }
 
     @RequestMapping("/pack/get/auth")

--
Gitblit v1.9.1