From d9417c62c436f5a6ca12465bf9fb60aef856bf60 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Fri, 12 Apr 2024 17:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=BA=93=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TransferLibRequestAutoMapperProfile.cs | 43 +------------------ .../TransferLibRequestEventHandler.cs | 4 +- 2 files changed, 4 insertions(+), 43 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/TransferLibRequestAutoMapperProfile.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/TransferLibRequestAutoMapperProfile.cs index b7d013f8b..899f5d922 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/TransferLibRequestAutoMapperProfile.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/TransferLibRequestAutoMapperProfile.cs @@ -9,47 +9,6 @@ public partial class StoreEventAutoMapperProfile : Profile { private void TransferLibRequestAutoMapperProfile() { - CreateMap() - .IgnoreAuditedObjectProperties() - .ForMember(x => x.RequestNumber, y => y.MapFrom(d => d.Number)) - .ForMember(x => x.Confirmed, y => y.MapFrom(d => !d.UseOnTheWayLocation)) - .Ignore(x => x.ConfirmTime) - .Ignore(x => x.JobNumber) - .Ignore(x => x.Number) - .Ignore(x => x.Id); - - CreateMap() - .IgnoreAuditedObjectProperties() - .ForMember(x => x.RequestNumber, y => y.MapFrom(d => d.Number)) - .ForMember(x => x.Confirmed, y => y.MapFrom(d => !d.UseOnTheWayLocation)) - .ForMember(dest => dest.Details, option => option.MapFrom(src => src.Details)) - .Ignore(x => x.ConfirmTime) - .Ignore(x => x.JobNumber) - .Ignore(x => x.Number) - .Ignore(x => x.Id) - .Ignore(x => x.WarehouseCode) - //.Ignore(x => x.Details) - .Ignore(x => x.IsAutoComplete) - .Ignore(x => x.JobType) - .Ignore(x => x.JobDescription) - .Ignore(x => x.JobStatus) - .Ignore(x => x.WorkGroupCode) - .Ignore(x => x.Priority) - .Ignore(x => x.PriorityIncrement) - .Ignore(x => x.AcceptUserId) - .Ignore(x => x.AcceptUserName) - .Ignore(x => x.AcceptTime) - .Ignore(x => x.CompleteUserId) - .Ignore(x => x.CompleteUserName) - .Ignore(x => x.CompleteTime) - .Ignore(x => x.UpStreamJobNumber) - .BeforeMap((notice, input) => input.JobType = EnumJobType.Transfer) - .BeforeMap((notice, input) => input.JobStatus = EnumJobStatus.Open) - .BeforeMap((notice, input) => input.IsAutoComplete = false) - ; - - CreateMap() - .Ignore(x => x.OnTheWayLocationCode) - ; + } } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/TransferLibRequestEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/TransferLibRequestEventHandler.cs index ca3e87d4b..d9b69b984 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/TransferLibRequestEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Requests/TransferLibRequestEventHandler.cs @@ -72,7 +72,9 @@ public class TransferLibRequestEventHandler } else { - var input = ObjectMapper.Map(entity); + //todo 刘云峰 + //var input = ObjectMapper.Map(entity); + var input = new TransferLibJob(); //获取在途库 var locationDto = await _locationAppService.GetFirstByTypeAsync(EnumLocationType.TRANSPORT)