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)