From f8599dbecb492b176de7a86b19207c76d9396bb0 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Fri, 20 Oct 2023 16:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=94=9F=E4=BA=A7=E9=A2=86=E6=96=99?= =?UTF-8?q?=E5=92=8C=E9=80=80=E6=96=99=E8=AE=BE=E7=BD=AE=20createid=20?= =?UTF-8?q?=E7=BB=99=E6=8E=A5=E5=8F=A3=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Notes/UnplannedIssuesNotes/UnplannedIssueNoteAppService.cs | 1 + .../UnplannedReceiptNotes/UnplannedReceiptNoteAppService.cs | 1 + .../DataExchanges/UnplannedIssueNoteEventHandler.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedIssuesNotes/UnplannedIssueNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedIssuesNotes/UnplannedIssueNoteAppService.cs index 1ee172a4c..2836dbb67 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedIssuesNotes/UnplannedIssueNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedIssuesNotes/UnplannedIssueNoteAppService.cs @@ -41,6 +41,7 @@ public class UnplannedIssueNoteAppService : detail.ExtraProperties = inputDetail.ExtraProperties; entity.Details.Add(detail); + entity.CreatorId = CurrentUser.Id; } await _unplannedIssueNoteManager.CreateAsync(entity).ConfigureAwait(false); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedReceiptNotes/UnplannedReceiptNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedReceiptNotes/UnplannedReceiptNoteAppService.cs index 0f0cf5a03..99a231e40 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedReceiptNotes/UnplannedReceiptNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/UnplannedReceiptNotes/UnplannedReceiptNoteAppService.cs @@ -46,6 +46,7 @@ public class UnplannedReceiptNoteAppService : detail.ExtraProperties = inputDetail.ExtraProperties; entity.Details.Add(detail); + entity.CreatorId = CurrentUser.Id; } await _unplannedReceiptNoteManager.CreateAsync(entity).ConfigureAwait(false); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/DataExchanges/UnplannedIssueNoteEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/DataExchanges/UnplannedIssueNoteEventHandler.cs index 9eac13e05..eb86fc5a1 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/DataExchanges/UnplannedIssueNoteEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/DataExchanges/UnplannedIssueNoteEventHandler.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Threading.Tasks; using Volo.Abp.EventBus; using Volo.Abp.Uow; +using Volo.Abp.Users; using Win_in.Sfs.Shared.Event; using Win_in.Sfs.Wms.Store.Application.Contracts; using Win_in.Sfs.Wms.Store.Domain;