diff --git a/Reportapi/MyCode.Project.Services/Implementation/WMSService.cs b/Reportapi/MyCode.Project.Services/Implementation/WMSService.cs index 67b9424..af805df 100644 --- a/Reportapi/MyCode.Project.Services/Implementation/WMSService.cs +++ b/Reportapi/MyCode.Project.Services/Implementation/WMSService.cs @@ -100,10 +100,15 @@ namespace MyCode.Project.Services.Implementation //trades = trades.Where(t => !oldids.Contains(new { t.WMS单号, t.单据行号 })).ToList(); } - - _repository.Add(trades); + if (trades.Count > 0) + { + _repository.Add(trades); + + } + string now = DateTime.Now.ToString(); + _workProcessService.Add(this.MerchantId, "SendInStock", "上传WMS的入库数据到吉客云", now, 1); + _workProcessService.Add(this.MerchantId, "SendOutStock", "上传WMS的出库数据到吉客云", now, 1); - } #endregion