diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ContainerNotes/Inputs/ContainerNoteEditInput.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ContainerNotes/Inputs/ContainerNoteEditInput.cs index 676aef13f..55420ab2a 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ContainerNotes/Inputs/ContainerNoteEditInput.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ContainerNotes/Inputs/ContainerNoteEditInput.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Win_in.Sfs.Shared.Domain; @@ -13,10 +14,16 @@ public class ContainerNoteEditInput : SfsStoreCreateOrUpdateInputBase /// [Display(Name = "已确认")] public bool Confirmed { get; set; } + + /// + /// 确认时间 + /// + [Display(Name = "确认时间")] + public DateTime? ConfirmTime { get; set; } #endregion #region Create - + /// /// 任务ID /// diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/ContainerJobs/ContainerJobAutoMapperProfile.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/ContainerJobs/ContainerJobAutoMapperProfile.cs index a4ccbb640..e4a1a38e9 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/ContainerJobs/ContainerJobAutoMapperProfile.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/ContainerJobs/ContainerJobAutoMapperProfile.cs @@ -9,9 +9,11 @@ public partial class StoreApplicationAutoMapperProfile : Profile { private void ContainerJobAutoMapperProfile() { - CreateMap(); + CreateMap() + .Ignore(x => x.SpecificationsTypeName); - CreateMap(); + CreateMap() + ; CreateMap() ; diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/ContainerJobEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/ContainerJobEventHandler.cs index b9dbe1134..1c3f524e6 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/ContainerJobEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/ContainerJobEventHandler.cs @@ -50,8 +50,9 @@ public class ContainerJobEventHandler : private async Task BuildContainerNoteAsync(ContainerJob entity) { var ContainerNoteCreateInput = ObjectMapper.Map(entity); - ContainerNoteCreateInput.JobNumber = entity.Number; - + ContainerNoteCreateInput.JobNumber = entity.Number; + ContainerNoteCreateInput.Confirmed = true; + ContainerNoteCreateInput.ConfirmTime=DateTime.Now; return ContainerNoteCreateInput; }