| | |
| | | { |
| | | public partial class MESService |
| | | { |
| | | /// <summary> |
| | | /// MESæ¨éæ¶è£
å·¥å |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent pushWorkOrderInfo(object json) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | 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, |
| | |
| | | workOrderType = item.workOrderType, |
| | | workshopCode = item.workshopCode, |
| | | }; |
| | | |
| | | paintingOrderInfos.Add(paintingOrderInfo); |
| | | } |
| | | _paintingOrderInfoRepository.AddData(paintingOrderInfos); |
| | | //} |
| | | |
| | | LogFactory.GetLog("æ¶è£
å·¥åä¿¡æ¯").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("æ¶è£
å·¥åä¿¡æ¯").Info(true, result.ToJsonString()); |