bug
This commit is contained in:
@@ -89,7 +89,13 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
if (input.data.ContainsKey(nameof(WmsDelivery.endlocation_id)))
|
||||
{
|
||||
endLocationId = input.data[nameof(WmsDelivery.endlocation_id)]?.ToString()!;
|
||||
BasLocation endLocation = await _db.Queryable<BasLocation>().Where(x=>x.location_code==input.data[nameof(WmsDelivery.endlocation_id)].ToString()).FirstAsync();
|
||||
if (endLocation == null)
|
||||
{
|
||||
throw Oops.Bah("未找到目标库位");
|
||||
}
|
||||
|
||||
endLocationId = endLocation.id;
|
||||
}
|
||||
string[] locIds = new[] { startLocationId, endLocationId };
|
||||
List<BasLocation> locs = await _basLocationService?.GetLocationInfobyIds(locIds)!;
|
||||
|
||||
Reference in New Issue
Block a user