This commit is contained in:
qianjiawei
2023-12-20 16:58:40 +08:00
parent c45c3542a3
commit e8d9f9af81
5 changed files with 97 additions and 4 deletions

View File

@@ -203,8 +203,18 @@ namespace Tnb.WarehouseMgr
if (sPoint != null && ePoint != null)
{
List<WmsPointH> points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
if (points.Count <= 2)
List<WmsPointH> points=new List<WmsPointH>();
try
{
points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
}
catch (Exception)
{
points.Add(sPoint);
points.Add(ePoint);
}
if (points.Count < 2)
{
throw new AppFriendlyException("该路径不存在", 500);
}