From f12bd70dfb77266f1b07a5b23ee875bcbddc34bc Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Fri, 22 Mar 2024 14:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=80=E5=94=AE=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E5=92=8C=E6=A0=87=E5=87=86=E6=88=90=E6=9C=AC=E4=BB=B7?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SalePrices/SalePriceSheetAppService.cs | 2 +- .../StdCostPrices/StdCostPriceSheetAppService.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs index 31662e574..e44928e0e 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs @@ -34,7 +34,7 @@ public class SalePriceSheetAppService : SfsBaseDataAppServiceBase GetByItemCodeAndCustomerCode(string itemCode,string customerCode) { - var entity = await _repository.GetAsync(p => p.ItemCode == itemCode&&p.CustomerCode== customerCode).ConfigureAwait(false); + var entity = await _repository.FindAsync(p => p.ItemCode == itemCode&&p.CustomerCode== customerCode).ConfigureAwait(false); var dto = ObjectMapper.Map(entity); return dto; } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs index a676d326f..5090b0f26 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs @@ -21,6 +21,7 @@ public class StdCostPriceSheetAppService : SfsBaseDataAppServiceBase GetByItemCode(string itemCode) { - var entity = await _repository.GetAsync(p => p.ItemCode == itemCode).ConfigureAwait(false); + var entity = await _repository.FindAsync(p => p.ItemCode == itemCode).ConfigureAwait(false); var dto = ObjectMapper.Map(entity); return dto; }