Tiandele
2026-03-20 daea1a90c2fa1b5cc2f52e62be15bd95cc4155f6
ÏîÄ¿´úÂë/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}");
            }
        }