From 0e829f4a5321c10900e1f4130a80f2e8c804a08e Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 19 六月 2025 17:30:47 +0800 Subject: [PATCH] 修复取消订单和更改终点货区流程与国自AGV交互的部分细节问题 --- dispatch/GZRobot.cs | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/dispatch/GZRobot.cs b/dispatch/GZRobot.cs index 213e3d5..465007f 100644 --- a/dispatch/GZRobot.cs +++ b/dispatch/GZRobot.cs @@ -27,6 +27,7 @@ var dataResult = JsonConvert.DeserializeObject<gzResult<IOStatesInfoResult>>(result); } + // DOC 1. 鍒涘缓璁㈠崟 WMS->RCS public static int CreateOrder(string taskNo, int priority, string param, string ts = "churuku", string created_user = "hanhe") { LogHelper.Info($"CreateOrder鍙傛暟淇℃伅:taskNo:{taskNo},priority:{priority},param:{param},ts:{ts}锛宑reated_user锛歿created_user}", "API"); var msg = ""; @@ -76,6 +77,7 @@ return result; } + // DOC 2. 鍙栨秷璁㈠崟 WMS->RCS public static bool CancelGZOrder(int orderId) { bool result = false; string msg = ""; @@ -86,12 +88,21 @@ msg = $"[guozi-CancelOrder] request={requests};response={response}"; if (response != "") { var dataResult = JsonConvert.DeserializeObject<CancelGZOrderResult>(response); - if (dataResult.code == 0) { - msg = "[guozi-CancelOrder]鍙栨秷璁㈠崟鎴愬姛"; - Console.WriteLine(msg); + // 鍘熶唬鐮佺増鏈�+ //if (dataResult.code == 0) { + // msg = "[guozi-CancelOrder]鍙栨秷璁㈠崟鎴愬姛"; + // Console.WriteLine(msg); + // result = true; + // return result; + //} + + // 灏婇噸鏂囨。鐨勭増鏈�+ if (dataResult.msg == "success") { // 鐩墠鍙彇娑堜竴涓换鍔★紝鎴愬姛鏃犻渶鍐嶆鏌uccess_list鍜宔rror_list + Console.WriteLine("[guozi-CancelOrder]鍙栨秷璁㈠崟鎴愬姛"); result = true; return result; } + } else { msg = "[guozi-CancelOrder]鍙栨秷璁㈠崟澶辫触"; @@ -100,7 +111,7 @@ return result; } - + // DOC 3. 璁㈠崟鐘舵�鎺ㄩ� RCS->WMS /// <summary> /// 璁㈠崟鐘舵�鍙嶉 /// </summary> @@ -193,6 +204,7 @@ return result; } + // DOC 6. 浜や簰琛ㄦ煡璇� /// <summary> /// 鑾峰彇浜や簰淇℃伅 /// </summary> @@ -228,6 +240,7 @@ return list; } + // DOC 澶囩敤 public static bool UpdateInteractInfo(UpdateInteractInfo interactInfo) { string msg = ""; var result = false; @@ -245,6 +258,7 @@ return result; } + // DOC 5. 绉伴噸淇℃伅鏌ヨ public static List<CustomData> CustomBuf() { var res = new List<CustomData>(); string msg = ""; -- Gitblit v1.9.1