Browse Source

[fix] 微调Mapping

master
jiargcnXPS 3 years ago
parent
commit
90b726022a
  1. 6
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs

6
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.Site, p => p.MapFrom(q => q.Site))
.ForMember(p => p.PartCode, p => p.MapFrom(q => q.Code)) .ForMember(p => p.PartCode, p => p.MapFrom(q => q.Code))
.ForMember(p => p.ErpPartCode, 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.PartDesc1, p => p.MapFrom(q => q.Desc2))
.ForMember(p => p.PartDesc2, 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.ProjectId, p => p.MapFrom(q => q.ProductLine))
.ForMember(p => p.Unit, p => p.MapFrom(q => q.Uom)) .ForMember(p => p.Unit, p => p.MapFrom(q => q.Uom))
.ForMember(p => p.PartGroup, p => p.MapFrom(q => q.Group)) .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.RecvBillNum, p => p.MapFrom(q => q.TrNbr))
.ForMember(p => p.PoBillNum, p => p.MapFrom(q => "")) .ForMember(p => p.PoBillNum, p => p.MapFrom(q => ""))
.ForMember(p => p.AsnBillNum, p => p.MapFrom(q => q.Order)) .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.ShipTime, p => p.MapFrom(q => DateTime.MinValue))//默认值
.ForMember(p => p.State, p => p.MapFrom(q => 1))//TODO .ForMember(p => p.State, p => p.MapFrom(q => 1))//TODO
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) .ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark))

Loading…
Cancel
Save