Browse Source

修改销售价格和标准成本价服务

dev_DY_CC
lvzb 1 year ago
parent
commit
f12bd70dfb
  1. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs
  2. 3
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SalePrices/SalePriceSheetAppService.cs

@ -34,7 +34,7 @@ public class SalePriceSheetAppService : SfsBaseDataAppServiceBase<SalePriceSheet
[HttpPut("get-by-itemcode-and-customercode")]
public virtual async Task<SalePriceSheetDTO> 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<SalePriceSheet, SalePriceSheetDTO>(entity);
return dto;
}

3
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/StdCostPrices/StdCostPriceSheetAppService.cs

@ -21,6 +21,7 @@ public class StdCostPriceSheetAppService : SfsBaseDataAppServiceBase<StdCostPric
base.CreatePolicyName = StdCostPriceSheetPermissions.Create;
base.UpdatePolicyName = StdCostPriceSheetPermissions.Update;
base.DeletePolicyName = StdCostPriceSheetPermissions.Delete;
_repository = repository;
}
[HttpPost("upsert-interface")]
@ -34,7 +35,7 @@ public class StdCostPriceSheetAppService : SfsBaseDataAppServiceBase<StdCostPric
[HttpPut("get-by-itemcode")]
public virtual async Task<StdCostPriceSheetDTO> 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<StdCostPriceSheet, StdCostPriceSheetDTO>(entity);
return dto;
}

Loading…
Cancel
Save