From 5c1aadf7eac232d8e9d952d800084cd3213e1f54 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Tue, 21 May 2024 16:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs | 5 ++++- .../Requests/CountPlanEventHandler.cs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs index 6560175aa..f31d86af6 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs @@ -59,7 +59,10 @@ public class CountJobEventHandler : foreach (var detail in countPlanUpdateInput.Details) { - detail.DetailStatus = EnumCountStatus.Completed; + if (detail.FinalCountQty != 0) + { + detail.DetailStatus = EnumCountStatus.Completed; + } await TrySetDetailPropertiesAsync(detail).ConfigureAwait(false); } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/CountPlanEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/CountPlanEventHandler.cs index a453c0ef9..fbad39add 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/CountPlanEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/CountPlanEventHandler.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -99,6 +100,7 @@ public class CountPlanEventHandler foreach (var job in jobs) { var countNote = ObjectMapper.Map(job); + countNote.EndTime = DateTime.Now; notes.Add(countNote); } if (notes.Count > 0)