1
This commit is contained in:
@@ -2665,7 +2665,22 @@ namespace Tnb.WarehouseMgr
|
||||
});
|
||||
return Points;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
List<WmsRoad> roads = await _db.Queryable<WmsRoad>().Where(it => it.status == 1).ToListAsync();
|
||||
|
||||
// 待验证 电梯不跑算法
|
||||
//List<WmsRoad> wmsRoads = await _db.Queryable<WmsRoad>().Where(r => r.startpoint_id == pStartId).ToListAsync();
|
||||
//if (wmsRoads?.FindAll(x => x.endpoint_code != null && x.location_code.Contains("dt", StringComparison.OrdinalIgnoreCase))?.Count > 0)
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
//List<WmsRoad> wmsRoads = await _db.Queryable<WmsRoad>().Where(r => r.startpoint_id == pStartId).ToListAsync();
|
||||
|
||||
|
||||
|
||||
List<WmsPointH> points = await LocPathCalcAlgorithms(pStartId, pEndId, roads);
|
||||
try
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace Tnb.WarehouseMgr
|
||||
List<BasLocation> endLocations = await _wareHouseService.InStockStrategy(inStockStrategyInput);
|
||||
if (endLocations?.Count == 0)
|
||||
{
|
||||
throw new AppFriendlyException("没有可用的中储仓库位", 500);
|
||||
throw new AppFriendlyException("没有可用的库位", 500);
|
||||
}
|
||||
BasLocation endLocation = endLocations[0];
|
||||
|
||||
|
||||
@@ -418,9 +418,5 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
return await Task.FromResult(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user