陈勇
2 天以前 6b74e1dcf5642c8f56975471e27780d695953989
ÏîÄ¿´úÂë/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/pushWorkOrderInfo.cs
@@ -22,6 +22,11 @@
{
    public partial class MESService
    {
        /// <summary>
        /// MES推送涂装工单
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        public WebResponseContent pushWorkOrderInfo(object json)
        {
            WebResponseContent content = new WebResponseContent();
@@ -34,6 +39,18 @@
                var paintingOrderInfos = new List<Dt_PaintingOrderInfo>();
                foreach (var item in result)
                {
                    //var paintingInfo = _paintingOrderInfoRepository.QueryFirst(x => x.workOrderNo == item.workOrderNo && x.workOrderType == item.workOrderType);
                    //if (null != paintingInfo)
                    //{
                    //    paintingInfo.pvi = item.pvi;
                    //    paintingInfo.carBodyCharacteristic = item.carBodyCharacteristic;
                    //    paintingInfo.twoToneCharacteristic = item.twoToneCharacteristic;
                    //    paintingInfo.pbMaterial = item.pbMaterial;
                    //    _paintingOrderInfoRepository.UpdateData(paintingInfo);
                    //}
                    //else
                    //{
                    Dt_PaintingOrderInfo paintingOrderInfo = new Dt_PaintingOrderInfo()
                    {
                        biwMaterial = item.biwMaterial,
@@ -55,10 +72,10 @@
                        workOrderType = item.workOrderType,
                        workshopCode = item.workshopCode,
                    };
                    paintingOrderInfos.Add(paintingOrderInfo);
                }
                _paintingOrderInfoRepository.AddData(paintingOrderInfos);
                //}
                LogFactory.GetLog("涂装工单信息").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("涂装工单信息").Info(true, result.ToJsonString());