diff --git a/Myshipping.Core/Entity/DJY/DjyCustomerAddr.cs b/Myshipping.Core/Entity/DJY/DjyCustomerAddr.cs index 2bc638f8..6ccca5d5 100644 --- a/Myshipping.Core/Entity/DJY/DjyCustomerAddr.cs +++ b/Myshipping.Core/Entity/DJY/DjyCustomerAddr.cs @@ -9,7 +9,7 @@ namespace Myshipping.Core.Entity /// [SugarTable("djy_customer_addr")] [Description("客户地址")] - public class DjyCustomerAddr + public class DjyCustomerAddr : DBEntityTenant { /// /// 客户Id diff --git a/Myshipping.Core/Service/DjyCustomer/DjyCustomerService.cs b/Myshipping.Core/Service/DjyCustomer/DjyCustomerService.cs index 7f521ebb..fc00912c 100644 --- a/Myshipping.Core/Service/DjyCustomer/DjyCustomerService.cs +++ b/Myshipping.Core/Service/DjyCustomer/DjyCustomerService.cs @@ -111,7 +111,7 @@ namespace Myshipping.Core.Service await _repContact.InsertAsync(contactList); //地址 - var addrList = input.Contacts.Adapt>(); + var addrList = input.Addrs.Adapt>(); 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>(); + var addrList = input.Addrs.Adapt>(); addrList.ForEach(x => x.CustomerId = entity.Id); await _repAddr.InsertAsync(addrList); return entity.Id;