|
@ -126,9 +126,9 @@ public class ProductionLineItemAppService : |
|
|
public virtual async Task<ProductionLineItemDTO> GetByProductLineCodeAndItemCodeAsync(string productLineCode, |
|
|
public virtual async Task<ProductionLineItemDTO> GetByProductLineCodeAndItemCodeAsync(string productLineCode, |
|
|
string itemCode) |
|
|
string itemCode) |
|
|
{ |
|
|
{ |
|
|
var entityList = await _repository |
|
|
var entity = await _repository |
|
|
.FindAsync(p => p.ProdLineCode == productLineCode && p.ItemCode == itemCode).ConfigureAwait(false); |
|
|
.FirstOrDefaultAsync(p => p.ProdLineCode == productLineCode && p.ItemCode == itemCode).ConfigureAwait(false); |
|
|
return ObjectMapper.Map<ProductionLineItem, ProductionLineItemDTO>(entityList); |
|
|
return ObjectMapper.Map<ProductionLineItem, ProductionLineItemDTO>(entity); |
|
|
} |
|
|
} |
|
|
[HttpPost("get-by-productlinecode-and-itemcode-and-erplocationcode-async")] |
|
|
[HttpPost("get-by-productlinecode-and-itemcode-and-erplocationcode-async")] |
|
|
public virtual async Task<List<string>> GetByProductLineCodeAndItemCodeAndErpLocationCodeAsync(List<EnumLocationType> locationType, string erpLocationCodes,string itemCode) |
|
|
public virtual async Task<List<string>> GetByProductLineCodeAndItemCodeAndErpLocationCodeAsync(List<EnumLocationType> locationType, string erpLocationCodes,string itemCode) |
|
|