From e4690fca932b352927af3d186ed2a4767f017e79 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 17 八月 2025 15:02:37 +0800
Subject: [PATCH] 修改问题
---
Admin.NET/WCS.Application/Util/HttpService.cs | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/Admin.NET/WCS.Application/Util/HttpService.cs b/Admin.NET/WCS.Application/Util/HttpService.cs
index e23ca4e..8a24de8 100644
--- a/Admin.NET/WCS.Application/Util/HttpService.cs
+++ b/Admin.NET/WCS.Application/Util/HttpService.cs
@@ -32,8 +32,10 @@
/// <param name="ceng"></param>
/// <param name="endLocat"></param>
/// <param name="taskNo"></param>
+ /// <param name="palletHeight"></param>
+ /// <param name="palletWeight"></param>
/// <returns></returns>
- public string RequestRoadWay(string palletNo, string startLocat, string taskModel, string ceng, ref string endLocat, ref string taskNo, int palletHeight)
+ public string RequestRoadWay(string palletNo, string startLocat, string taskModel, string ceng, ref string endLocat, ref string taskNo, int palletHeight,string palletWeight)
{
Log.Information("璋冪敤WMS鎺ュ彛鍙嶉浠诲姟鎺ュ彛-鏄惁閲嶅鐢宠锛�" + palletNo);
lock (OLock)
@@ -50,7 +52,9 @@
PalletNo = palletNo,
HouseNo = "W01",
TaskModel = taskModel,
- PalletHeight = palletHeight
+ PalletHeight = palletHeight,
+ StartLocat = startLocat,
+ PalletWeight = palletWeight
};
string url = Urls.WMSAddress + ":" + Urls.WMSPort;
@@ -438,4 +442,28 @@
}
return returnStr;
}
+
+ /// <summary>
+ /// 鍙犳墭鏈虹敵璇风┖鎵樿泛缁戝畾
+ /// </summary>
+ /// <param name="palletNo"></param>
+ /// <returns></returns>
+ public string BindNullPalletWcs(int qty,string palletNo)
+ {
+ string returnStr = "";
+ var model = new
+ {
+ PalletNo = palletNo,
+ Qty = qty,
+ };
+ string url = Urls.WMSAddress + ":" + Urls.WMSPort;
+ var result = (url + "/api/DownAPi/BindNullPalletWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<ResponseSkuInfo>().Result;
+ Log.Information("璋冪敤WMS鎺ュ彛鍙犳墭鏈虹粦瀹氱┖鎵樿泛" + result.ToJson());
+
+ if (result.Success != 0)
+ {
+ returnStr = "-1:" + result.Message;
+ }
+ return returnStr;
+ }
}
--
Gitblit v1.8.0