From 1924bdeca6414b6fec314c37260b44f20865d593 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期四, 22 一月 2026 20:49:05 +0800
Subject: [PATCH] 代码同步,接口更新
---
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
index 15cd077..4ff86d3 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
@@ -21,7 +21,7 @@
/// </summary>
public partial class MESService
{
- public WebResponseContent issuedCharacter(string rfidPrint, string vin, string stationNo)
+ public WebResponseContent issuedCharacter(string rfidPrint, string vin, string stationNo, string palletCode)
{
WebResponseContent content = new WebResponseContent();
try
@@ -43,23 +43,31 @@
}
var wmsIpAddress = wmsBase + ipAddress;
- var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson()).Result;
-
- IssuedCharacterRespon characterRespon = JsonConvert.DeserializeObject<IssuedCharacterRespon>(MESrespon);
- if (!characterRespon.success)
+ var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson(), contentType, headers).Result;
+ Console.WriteLine(MESrespon);
+ WebResponseContent webResponse = JsonConvert.DeserializeObject<WebResponseContent>(MESrespon.ToString());
+ if (webResponse.Code != 200)
{
- throw new Exception($"{characterRespon}");
+ throw new Exception($"{webResponse.Message}");
}
- Dt_CarBody CarBody = new Dt_CarBody()
+ IssuedCharacterRespon characterRespon = JsonConvert.DeserializeObject<IssuedCharacterRespon>(webResponse.Data.ToJson());
+
+ Dt_CarBodyInfo CarBody = new Dt_CarBodyInfo()
{
+ biwInPassTime = characterRespon.biwInPassTime,
+ biwMaterialCode = characterRespon.biwMaterialCode,
+ skylightCharacteristic = characterRespon.skylightCharacteristic,
+ vehicleCharacteristic = characterRespon.vehicleCharacteristic,
+ workOrderNo = characterRespon.workOrderNo,
+ workOrderType = characterRespon.workOrderType,
BodyStatus = "",
CarType = 1,
CreateDate = DateTime.Now,
Creater = "system",
Description = "",
- PalletCode = rfidPrint,
- PVI = characterRespon.rfidPrint
+ PalletCode = palletCode,
+ PVI = characterRespon.pvi
};
_carBodyRepository.AddData(CarBody);
--
Gitblit v1.9.3