From 0cdbbb60b9549be1c99ff7d5a37936dadac61649 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期三, 27 三月 2024 10:50:30 +0800
Subject: [PATCH] AGV任务下发

---
 src/main/java/com/zy/asrs/controller/AgvMobileController.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/AgvMobileController.java b/src/main/java/com/zy/asrs/controller/AgvMobileController.java
index 4c7ca4c..8143d47 100644
--- a/src/main/java/com/zy/asrs/controller/AgvMobileController.java
+++ b/src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -96,14 +96,14 @@
     }
 
     /*
-    绌烘澘鍑哄簱
+    鍏ュ簱
      */
     @PostMapping("/pakin/empty/auth")
     @Synchronized
-    public R pakinEmpty(@RequestBody List<AgvMobileStartParam> params){
+    public R pakinEmpty(@RequestBody AgvMobileStartParam params){
 
-        for (AgvMobileStartParam param : params){
-            workService.emptyPlateIn(param.getDevNo(),param.getContainerCode(),getUserId());
+        for (AgvMobileStartParam.Pad pad : params.getPad()) {
+            workService.emptyPlateIn(pad.getDevNo(),pad.getContainerCode(),pad.getContainerType(), getUserId());
         }
 
         return R.ok();
@@ -114,10 +114,11 @@
      */
     @PostMapping("/pakout/empty/auth")
     @Synchronized
-    public R pakoutEmpty(@RequestBody Map<String,Object> map){
+    public R pakoutEmpty(@RequestBody AgvMobileStartParam params){
 
-        String devNo = map.get("devNo").toString();
-
+        for (AgvMobileStartParam.Pad pad : params.getPad()) {
+            workService.emptyPlateOut(pad.getDevNo(),pad.getContainerType(), getUserId());
+        }
 
         return R.ok();
     }

--
Gitblit v1.9.1