修复bug
This commit is contained in:
@@ -153,7 +153,7 @@ namespace WMS.Web.Repositories
|
||||
.GroupJoin(_context.BoxInventory, serial => serial.BoxId, box => box.BoxId, (serial, box) => new { serial, box })
|
||||
.SelectMany(x => x.box.DefaultIfEmpty(), (p, box) => new { p.serial, box })
|
||||
.FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber));
|
||||
if (entity.serial == null) return null;
|
||||
if (entity == null || entity.serial == null) return null;
|
||||
response.BoxId = entity.serial.BoxId;
|
||||
response.SubStockId = entity.box?.SubStockId ?? 0;
|
||||
response.SerialNumber = entity.serial.SerialNumber;
|
||||
|
||||
Reference in New Issue
Block a user