增加字段
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user