This commit is contained in:
tongfei
2024-01-06 15:07:37 +08:00
8 changed files with 104 additions and 96 deletions

View File

@@ -1288,7 +1288,7 @@ namespace WMS.Web.Domain.Services.Public
}
catch (Exception)
{
return ResultList<Erp_SubStockDto>.ReFailure("错误", 10002);
return ResultList<Erp_SubStockDto>.ReFailure(ResultCodes.ErpSubStockError);
}
}

View File

@@ -445,7 +445,7 @@ namespace WMS.Web.Domain.Services
{
var serialNumbers = takeStocks.SelectMany(s => s.Details).SelectMany(s => s.SerialNumbers).ToList();
var entityList = await _serialNumbersRepositories.GetEntityList(serialNumbers);
var boxIds = entityList.Select(s => s.BoxId).ToList();
var boxIds = takeStocks.SelectMany(s=>s.Details).Select(s => s.BoxId).ToList();
var boxList = await _boxRepositories.GetEntityList(boxIds);
List<Box> box_New_List = new List<Box>();