获取条码增加返回是否是老ops条码
This commit is contained in:
@@ -256,6 +256,7 @@ namespace WMS.Web.Repositories
|
||||
else
|
||||
return null;
|
||||
}
|
||||
response.IsOldOps = false;
|
||||
response.BoxId = entity.serial.BoxId;
|
||||
response.BoxBillNo = entity?.box?.BoxBillNo ?? "";
|
||||
response.SubStockCode = entity?.boxInventory?.SubStockCode ?? "";
|
||||
@@ -290,6 +291,7 @@ namespace WMS.Web.Repositories
|
||||
.SelectMany(x => x.box.DefaultIfEmpty(), (p, box) => new { p.serial, p.boxInventory, box })
|
||||
.FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber));
|
||||
if (entity == null || entity.serial == null) return null;
|
||||
response.IsOldOps = true;
|
||||
response.BoxId = entity.serial.BoxId;
|
||||
response.BoxBillNo = entity?.box?.BoxBillNo ?? "";
|
||||
response.SubStockCode = entity?.boxInventory?.SubStockCode ?? "";
|
||||
|
||||
Reference in New Issue
Block a user