From 2f263d548dc8b9e270f5f5663e80f9d4f5880b10 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 15 六月 2025 15:05:58 +0800
Subject: [PATCH] 申请储位增加锁防止向WMS重复申请
---
Admin.NET/WCS.Application/Util/HttpService.cs | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/Admin.NET/WCS.Application/Util/HttpService.cs b/Admin.NET/WCS.Application/Util/HttpService.cs
index e23ca4e..d2e284f 100644
--- a/Admin.NET/WCS.Application/Util/HttpService.cs
+++ b/Admin.NET/WCS.Application/Util/HttpService.cs
@@ -50,7 +50,8 @@
PalletNo = palletNo,
HouseNo = "W01",
TaskModel = taskModel,
- PalletHeight = palletHeight
+ PalletHeight = palletHeight,
+ StartLocat = startLocat
};
string url = Urls.WMSAddress + ":" + Urls.WMSPort;
@@ -438,4 +439,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