|
|
|
@ -111,7 +111,7 @@ namespace Myshipping.Core.Service
|
|
|
|
|
await _repContact.InsertAsync(contactList);
|
|
|
|
|
|
|
|
|
|
//地址
|
|
|
|
|
var addrList = input.Contacts.Adapt<List<DjyCustomerAddr>>();
|
|
|
|
|
var addrList = input.Addrs.Adapt<List<DjyCustomerAddr>>();
|
|
|
|
|
addrList.ForEach(x => x.CustomerId = entity.Id);
|
|
|
|
|
await _repAddr.InsertAsync(addrList);
|
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ namespace Myshipping.Core.Service
|
|
|
|
|
await _repContact.InsertAsync(contactList);
|
|
|
|
|
//地址
|
|
|
|
|
await _repAddr.DeleteAsync(x => x.CustomerId == input.Id);
|
|
|
|
|
var addrList = input.Contacts.Adapt<List<DjyCustomerAddr>>();
|
|
|
|
|
var addrList = input.Addrs.Adapt<List<DjyCustomerAddr>>();
|
|
|
|
|
addrList.ForEach(x => x.CustomerId = entity.Id);
|
|
|
|
|
await _repAddr.InsertAsync(addrList);
|
|
|
|
|
return entity.Id;
|
|
|
|
|