增加字段

This commit is contained in:
18942506660
2023-12-09 15:54:09 +08:00
parent 7a79987e0c
commit 04272f5351
2 changed files with 8 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ namespace WMS.Web.Core.Dto
/// </summary>
public int SubStockId { get; set; } = 0;
/// <summary>
/// 是否存在于箱库存中
/// </summary>
public bool IsBoxInventory { get; set; } = false;
/// <summary>
/// 序列号
/// </summary>
public string SerialNumber { get; set; }

View File

@@ -210,6 +210,10 @@ namespace WMS.Web.Repositories
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialId);
response.MaterialNumber = _erpBasicDataExtendService.GetMaterialNumber(materials, entity.serial.MaterialId);
response.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, entity.serial.MaterialId);
if (entity.boxInventory != null)
response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Any(w => serialNumber.Contains(w));
return response;
}
}