From 90b726022af13ae743b7946f8c5638a0d98d600d Mon Sep 17 00:00:00 2001 From: jiargcnXPS Date: Fri, 25 Feb 2022 19:09:29 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E5=BE=AE=E8=B0=83Mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ScpV1AutoMapperProfile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs index 9519a0e..f9963e3 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs @@ -31,8 +31,8 @@ namespace Win_in.Sfs.Scp.WebApi .ForMember(p => p.Site, p => p.MapFrom(q => q.Site)) .ForMember(p => p.PartCode, p => p.MapFrom(q => q.Code)) .ForMember(p => p.ErpPartCode, p => p.MapFrom(q => q.Code)) - .ForMember(p => p.PartDesc1, p => p.MapFrom(q => q.Desc1)) - .ForMember(p => p.PartDesc2, p => p.MapFrom(q => q.Desc2)) + .ForMember(p => p.PartDesc1, p => p.MapFrom(q => q.Desc2)) + .ForMember(p => p.PartDesc2, p => p.MapFrom(q => q.Desc1)) .ForMember(p => p.ProjectId, p => p.MapFrom(q => q.ProductLine)) .ForMember(p => p.Unit, p => p.MapFrom(q => q.Uom)) .ForMember(p => p.PartGroup, p => p.MapFrom(q => q.Group)) @@ -231,7 +231,7 @@ namespace Win_in.Sfs.Scp.WebApi .ForMember(p => p.RecvBillNum, p => p.MapFrom(q => q.TrNbr)) .ForMember(p => p.PoBillNum, p => p.MapFrom(q => "")) .ForMember(p => p.AsnBillNum, p => p.MapFrom(q => q.Order)) - // .ForMember(p => p.VendId, p => p.MapFrom(q => ""))//默认值 + .ForMember(p => p.VendId, p => p.MapFrom(q => q.SoJob))//默认值 // .ForMember(p => p.ShipTime, p => p.MapFrom(q => DateTime.MinValue))//默认值 .ForMember(p => p.State, p => p.MapFrom(q => 1))//TODO .ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark))