From 89a167db6d7a84dc026c3f0a779f4f766b4b8eec Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 12 Jul 2023 11:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=80=E6=9D=A5=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Entity/DJY/DjyCustomerAddr.cs | 2 +- Myshipping.Core/Service/DjyCustomer/DjyCustomerService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;