* Introduced MaterialTransactionsController
This commit is contained in:
@@ -18,6 +18,13 @@ public class MaterialTransactionService(SytelineSaAppDbContext context, IMapper
|
||||
.Where(x => x.MTGroupNum == wzNumber)
|
||||
.Select(x => mapper.Map<MaterialTransactionDto>(x)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<IList<MaterialTransactionDto>> GetListByWzNumber(string wzNumber)
|
||||
{
|
||||
return await context.MaterialTransactions
|
||||
.Where(x => x.MTGroupNum == wzNumber)
|
||||
.Select(x => mapper.Map<MaterialTransactionDto>(x)).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<MaterialTransactionDto>> GetByWzNumbers(ISet<string> wzNumbers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user