From 192dce4357f14692ae628a793563eb1526f42ecf Mon Sep 17 00:00:00 2001 From: yuyubo <1870149533@qq.com> Date: Fri, 18 Jul 2025 17:27:27 +0800 Subject: [PATCH] 11 --- .../Implementation/WMSService.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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