From 5f75a12d74d353470381c0d6a39affb0a61e0ad1 Mon Sep 17 00:00:00 2001
From: WINDOWS-F96JH03\Kain <MrTianDeLe@163.com>
Date: 星期二, 17 三月 2026 14:39:10 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 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 4ff86d3..2a955db 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, string palletCode)
+ public WebResponseContent issuedCharacter(string rfidPrint, string stationNo, string palletCode)
{
WebResponseContent content = new WebResponseContent();
try
@@ -30,7 +30,7 @@
{
plantCode = "1052",
rfidPrint = rfidPrint,
- vin = vin,
+ vin = null,
messageTime = DateTime.Now
};
@@ -48,39 +48,40 @@
WebResponseContent webResponse = JsonConvert.DeserializeObject<WebResponseContent>(MESrespon.ToString());
if (webResponse.Code != 200)
{
- throw new Exception($"{webResponse.Message}");
+ throw new Exception($"{webResponse.msg}");
}
IssuedCharacterRespon characterRespon = JsonConvert.DeserializeObject<IssuedCharacterRespon>(webResponse.Data.ToJson());
Dt_CarBodyInfo CarBody = new Dt_CarBodyInfo()
{
- biwInPassTime = characterRespon.biwInPassTime,
+ biwInPassTime = Convert.ToDateTime(characterRespon.biwInPassTime),
biwMaterialCode = characterRespon.biwMaterialCode,
skylightCharacteristic = characterRespon.skylightCharacteristic,
vehicleCharacteristic = characterRespon.vehicleCharacteristic,
workOrderNo = characterRespon.workOrderNo,
workOrderType = characterRespon.workOrderType,
- BodyStatus = "",
- CarType = 1,
+ BodyStatus = 1,
+ CarType = stationNo == "EL01RB01" ? 2 : 1,
CreateDate = DateTime.Now,
- Creater = "system",
+ Creater = "System",
Description = "",
PalletCode = palletCode,
- PVI = characterRespon.pvi
+ PVI = characterRespon.pvi,
+ RFID = rfidPrint
};
_carBodyRepository.AddData(CarBody);
LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"\r\r--------------------------------------");
- LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"宸ヤ綅鍙�:{stationNo},RFID:{rfidPrint}");
+ LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"宸ヤ綅鍙�:{stationNo},RFID:{rfidPrint},鍝嶅簲淇℃伅:{webResponse.ToJson()}");
- return content;
+ return content.OK("鑾峰彇鐒婅鐧借溅韬俊鎭垚鍔�");
}
catch (Exception ex)
{
- LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"璇锋眰鐒婅鐗瑰緛淇℃伅寮傚父锛�:{ex.Message}");
+ LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"璇锋眰鐒婅鐗瑰緛淇℃伅寮傚父RFID:{rfidPrint}寮傚父淇℃伅:{ex.Message}");
return content.Error($"璇锋眰鐒婅鐗瑰緛淇℃伅寮傚父锛�:{ex.Message}");
}
}
--
Gitblit v1.9.3