修复bug

This commit is contained in:
18942506660
2023-12-09 13:42:48 +08:00
parent c6512b9eb2
commit 764155a45b
3 changed files with 12 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ namespace WMS.Web.Repositories
if (entity == null || entity.serial == null) return null;
response.BoxId = entity.serial.BoxId;
response.BoxBillNo = entity.box.BoxBillNo;
response.SubStockId = entity.boxInventory?.SubStockId ?? 0;
response.SubStockId = entity?.boxInventory?.SubStockId ?? 0;
response.SerialNumber = entity.serial.SerialNumber;
response.MaterialId = entity.serial.MaterialId;
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialId);