From 45b95bf88ab48e4b4db7ff9205e9afa2b83e8737 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期五, 03 四月 2026 19:29:09 +0800
Subject: [PATCH] no message

---
 src/main/java/com/zy/asrs/controller/MobileController.java |  112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 110 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index ae128b7..9fb43e5 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());
     }
 
@@ -187,6 +203,15 @@
         return mobileService.getCacheLocs();
     }
 
+
+    @ManagerAuth
+    @GetMapping("/cache/sites/{type}")
+    @ApiOperation("鑾峰彇缂撳瓨鍖哄叆鍑哄簱绔欑偣淇℃伅")
+    public R getCacheSites(@PathVariable String type) {
+        return mobileService.getCacheSites(type);
+
+    }
+
     @PostMapping("/cache/agv/call")
     @ApiOperation("缂撳啿鍖哄叆搴�")
     @ManagerAuth
@@ -197,8 +222,15 @@
         return mobileService.callAgvMove(params, getUserId());
     }
 
+    /**
+     * SO/EO鍏ュ簱
+     * @author Ryan
+     * @date 2026/4/3 14:53
+     * @param params 
+     * @return com.core.common.R
+     */
     @PostMapping("/collection/agv/call")
-    @ApiOperation("闆嗚揣鍖哄叆搴�")
+    @ApiOperation("SO/EO鍏ュ簱")
     @ManagerAuth
     public R CollectionInCall(@RequestBody AgvCallParams params) {
         if (Objects.isNull(params)) {
@@ -352,6 +384,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,11 +470,12 @@
         if (Objects.isNull(callAgvBackParam.getOrgSite())) {
             return R.error("鍙傛暟涓嶈兘涓虹┖!!");
         }
-    
        return mobileService.agvCallback(callAgvBackParam, getUserId());
     }
 
 
+
+
     @ManagerAuth(memo = "缂撳啿搴撶‘璁や笂鏋�(妯℃嫙鐗╃悊鎸夐挳)")
     @RequestMapping("/cache/comb/pub")
     public R cacheCombPub(@RequestBody CompleteParam combParam) {

--
Gitblit v1.9.1