Browse Source

[fix]新增供应商时,将英文名称放到VendName中

master
贾荣国 2 years ago
parent
commit
f0cfe65e1f
  1. 1
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs

1
WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/ScpV1AutoMapperProfile.cs

@ -57,6 +57,7 @@ namespace Win_in.Sfs.Scp.WebApi
.Ignore(p => p.Id)
.ForMember(p => p.Site, p => p.MapFrom(q => q.Company))//接口没有传入Site
.ForMember(p => p.VendId, p => p.MapFrom(q => q.Code))
.ForMember(p => p.VendName, p => p.MapFrom(q => q.Name))
.ForMember(p => p.ZipCode, p => p.MapFrom(q => q.Desc)) //英文描述放到ZipCode中
.ForMember(p => p.VendAbbCode, p => p.MapFrom(q => "0"))//未使用
.ForMember(p => p.VendType, p => p.MapFrom(q => ""))//默认值未空

Loading…
Cancel
Save