From 53f87c2ff10f7ab71d6b0340a5a4811089d7cd1e Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期五, 28 十一月 2025 17:17:48 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/controller/OpenController.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/OpenController.java b/src/main/java/com/zy/asrs/controller/OpenController.java
index 68f380c..bcba859 100644
--- a/src/main/java/com/zy/asrs/controller/OpenController.java
+++ b/src/main/java/com/zy/asrs/controller/OpenController.java
@@ -403,6 +403,9 @@
         } catch (Exception e){
             return R.error("鍗曟嵁缂栧彿[order_id]浠� "+sign_arm_sku+" 涓� "+sign_arm_order+" 浣滀负鎷嗗垎鏍囪鎷嗗垎澶辫触锛侊紒锛�");
         }
+        if (param.getArm_no()>4){
+            return R.ok().add(true);
+        }
 
         boolean taskArmWorkOrderSign = openService.TaskArmWorkOrderSign(param);
         return R.ok().add(taskArmWorkOrderSign);
@@ -511,4 +514,36 @@
         return R.error("搴撲綅涓嶅瓨鍦ㄦ垨鏃犳槑缁�");
     }
 
+    /**
+     * AGV鐢宠杩囧厜鏍�
+     */
+    @PostMapping("/agv/arm/grating/v1/agvCallback")
+    @AppAuth(memo = "AGV鐢宠杩囧厜鏍�")
+    public synchronized R agvGrating(@RequestHeader(required = false) String appkey,
+                                         @RequestBody AgvGoTheArnParam param,
+                                         HttpServletRequest request) {
+//        auth(appkey, param, request);
+        if (Cools.isEmpty(param)) {
+            return R.parse(BaseRes.PARAM);
+        }
+        if (Cools.isEmpty(param.getCurrentPositionCode())) {
+            return R.error("浣嶇疆[currentPositionCode]涓嶈兘涓虹┖");
+        }
+        boolean bindCtnrAndBin = true;
+        List<ArmAgvGratingParam> armList = param.getArmNo();
+        if (armList.isEmpty()){
+            return R.error("搴撲綅涓嶅瓨鍦ㄦ垨鏃犳槑缁�");
+        }
+        for (ArmAgvGratingParam arm : armList){
+            if (bindCtnrAndBin){
+                bindCtnrAndBin = openService.agvApplicationPassedTheGrating(arm);
+//                System.out.println("璇锋眰閫氳繃鍏夋爡"+armNo);
+            }
+        }
+        if (bindCtnrAndBin) {
+            return new R(0,"鎴愬姛");
+        }
+        return R.error("搴撲綅涓嶅瓨鍦ㄦ垨鏃犳槑缁�");
+    }
+
 }

--
Gitblit v1.9.1