修复bug

This commit is contained in:
18942506660
2023-12-09 13:44:27 +08:00
parent 764155a45b
commit 67501e83b4

View File

@@ -203,7 +203,7 @@ namespace WMS.Web.Repositories
.FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber)); .FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber));
if (entity == null || entity.serial == null) return null; if (entity == null || entity.serial == null) return null;
response.BoxId = entity.serial.BoxId; response.BoxId = entity.serial.BoxId;
response.BoxBillNo = entity.box.BoxBillNo; response.BoxBillNo = entity?.box?.BoxBillNo ?? "";
response.SubStockId = entity?.boxInventory?.SubStockId ?? 0; response.SubStockId = entity?.boxInventory?.SubStockId ?? 0;
response.SerialNumber = entity.serial.SerialNumber; response.SerialNumber = entity.serial.SerialNumber;
response.MaterialId = entity.serial.MaterialId; response.MaterialId = entity.serial.MaterialId;