Browse Source

盘点修改

dev_DY_CC
lvzb 12 months ago
parent
commit
5c1aadf7ea
  1. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs
  2. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/CountPlanEventHandler.cs

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs

@ -58,8 +58,11 @@ public class CountJobEventHandler :
var countPlanUpdateInput = ObjectMapper.Map<CountJob, CountPlanEditInput>(entity);
foreach (var detail in countPlanUpdateInput.Details)
{
if (detail.FinalCountQty != 0)
{
detail.DetailStatus = EnumCountStatus.Completed;
}
await TrySetDetailPropertiesAsync(detail).ConfigureAwait(false);
}

2
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<CountJob, CountNote>(job);
countNote.EndTime = DateTime.Now;
notes.Add(countNote);
}
if (notes.Count > 0)

Loading…
Cancel
Save