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; }