接口优化

This commit is contained in:
tongfei
2023-11-17 17:24:56 +08:00
parent b58c9957e4
commit 9daa9ab775
7 changed files with 29 additions and 3 deletions

View File

@@ -115,6 +115,8 @@ namespace WMS.Web.Repositories
.Where(x => 1 == 1 && x.box.BoxBillNo==boxBillNo).Select(x=>x.boxinvent).FirstOrDefaultAsync();
var response = _mapper.Map<BoxInventoryResponse>(entity);
response.Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, response.StockCode);
response.SubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, response.SubStockId);
response.Details = _mapper.Map<List<BoxInventoryDetailsResponse>>(entity.Details);
return response;