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/pushWorkOrderInfo.cs |   43 +++++++++++++++++++++++++++++++------------
 1 files changed, 31 insertions(+), 12 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs"
index 87cd9a1..dd2686f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs"
@@ -16,30 +16,49 @@
 using WIDESEA_DTO.WMS;
 using WIDESEA_Model.Models;
 using WIDESEA_StorageBasicRepository;
+using WIDESEA_StorageOutOrderRepository;
 
 namespace WIDESEA_StoragIntegrationServices
 {
     public partial class MESService
     {
-        /// <summary>
-        /// 娑傝宸ュ崟淇℃伅
-        /// </summary>
-        /// <param name="json"></param>
-        /// <returns></returns>
         public WebResponseContent pushWorkOrderInfo(object json)
         {
             WebResponseContent content = new WebResponseContent();
             try
             {
                 if (string.IsNullOrEmpty(json.ToString())) throw new Exception("璇锋眰鍙傛暟涓虹┖");
+                Console.WriteLine(json);
+                var result = JsonConvert.DeserializeObject<List<pushWorkOrderInfo>>(json.ToString());
 
-                var result = JsonConvert.DeserializeObject<pushWorkOrderInfo>(json.ToString());
+                var paintingOrderInfos = new List<Dt_PaintingOrderInfo>();
+                foreach (var item in result)
+                {
+                    Dt_PaintingOrderInfo paintingOrderInfo = new Dt_PaintingOrderInfo()
+                    {
+                        biwMaterial = item.biwMaterial,
+                        carBodyCharacteristic = item.carBodyCharacteristic,
+                        config1 = item.config1,
+                        config3 = item.config3,
+                        CreateDate = DateTime.Now,
+                        Creater = "System",
+                        pbMaterial = item.pbMaterial,
+                        plantCode = item.plantCode,
+                        pvi = item.pvi,
+                        sequenceNo = item.sequenceNo,
+                        skylightCharacteristic = item.skylightCharacteristic,
+                        twoToneCharacteristic = item.twoToneCharacteristic,
+                        vehicleCharacteristic = item.vehicleCharacteristic,
+                        workOrderNo = item.workOrderNo,
+                        workOrderSendStatus = item.workOrderSendStatus,
+                        splitStrategy = item.splitStrategy,
+                        workOrderType = item.workOrderType,
+                        workshopCode = item.workshopCode,
+                    };
 
-                var palletStockInfos = _palletStockInfoRepository.QueryData(x => x.OrderID == result.workOrderNo);
-
-
-
-
+                    paintingOrderInfos.Add(paintingOrderInfo);
+                }
+                _paintingOrderInfoRepository.AddData(paintingOrderInfos);
 
                 LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, $"\r\r--------------------------------------");
                 LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, result.ToJsonString());
@@ -48,7 +67,7 @@
             catch (Exception ex)
             {
                 LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, $"\r\r--------------------------------------");
-                LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, ex.Message);
+                LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, $"娑傝宸ュ崟鎺ユ敹寮傚父:{ex.Message}");
                 return content.Error(ex.Message);
             }
         }

--
Gitblit v1.9.3