From 413194b8c6a71fea8cb7a567800b11703c6c7d5a Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期三, 11 六月 2025 14:40:05 +0800
Subject: [PATCH] 添加叠托机业务

---
 Admin.NET/WCS.Application/OpenApi/OpenApi.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/Admin.NET/WCS.Application/OpenApi/OpenApi.cs b/Admin.NET/WCS.Application/OpenApi/OpenApi.cs
index aadbd65..c6a068c 100644
--- a/Admin.NET/WCS.Application/OpenApi/OpenApi.cs
+++ b/Admin.NET/WCS.Application/OpenApi/OpenApi.cs
@@ -3,6 +3,7 @@
 using Furion.Logging;
 using WCS.Application.Entity;
 using WCS.Application.Util;
+using static SKIT.FlurlHttpClient.Wechat.Api.Models.ComponentTCBBatchCreateContainerServiceVersionRequest.Types;
 
 namespace WCS.Application;
 
@@ -428,7 +429,11 @@
             Code = "0"
         };
         if (input.robotTaskCode.Substring(0, 3) != "WCS" && input.robotTaskCode.Substring(0, 2) != "TK")
+        {
+            result.Message = "鍙嶉鐨勪换鍔′笉鏄疻CS鐨勪换鍔�"; 
+            result.Code = "1";
             return result;
+        }
         PLCUtil modUtil = null;
         try
         {
@@ -532,6 +537,26 @@
                             }
                         }
                         break;
+                    case "notifyFullSite":
+                        {
+                            var palletNo = input.Extra.Values.carrierCode;
+                            var count = input.Extra.Values.pileCount;
+                            if (string.IsNullOrWhiteSpace(palletNo) || count <= 0)
+                            {
+                                throw new Exception("鍙傛暟锛氭墭鐩樺彿/鏁伴噺楠岃瘉澶辫触");
+                            }
+                            //鍚慦MS鐢宠绌烘墭鍏ュ簱
+                            HttpService httpService = new HttpService();
+                            var inputs = new NullPallInRequest();
+                             
+                            inputs.PalletNo = modTask.PalletNo;
+                            inputs.PallNum = count;
+                            inputs.Locate = "B100101";//鍙犳墭鐩樻満浣嶇疆
+                            inputs.HouseNo = "W02";
+                            var modResponseTask = httpService.RequestLiKuPallet(inputs);
+
+                        }
+                        break;
                     case "cancel"://浠诲姟鍙栨秷
                         {
                             PLCService.AGVStatus = false;

--
Gitblit v1.8.0