刘磊
2026-01-17 f1d726e3de8f15cdfe30d4ca5fbba733d73a1e56
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs
@@ -16,16 +16,12 @@
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();
@@ -35,11 +31,34 @@
                var result = JsonConvert.DeserializeObject<pushWorkOrderInfo>(json.ToString());
                var palletStockInfos = _palletStockInfoRepository.QueryData(x => x.OrderID == result.workOrderNo);
                var paintingOrderInfos = new List<Dt_PaintingOrderInfo>();
                foreach (var item in result.list)
                {
                    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,
                    };
                    paintingOrderInfos.Add(paintingOrderInfo);
                }
                _paintingOrderInfoRepository.AddData(paintingOrderInfos);
                LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("娑傝宸ュ崟淇℃伅").Info(true, result.ToJsonString());