提示完善

This commit is contained in:
2024-10-29 11:14:13 +08:00
parent 3316377d3e
commit f61a73e9e1
2 changed files with 13 additions and 12 deletions

View File

@@ -4166,11 +4166,13 @@ namespace Tnb.WarehouseMgr
if (sPoint == null)
{
throw new Exception($"库位{input.startlocation_id} 的起点点位未维护");
BasLocation _loc = await db.Queryable<BasLocation>().FirstAsync(it => it.id == input.startlocation_id);
throw new Exception($"起点库位{_loc.location_code} 的点位未维护");
}
if (ePoint == null)
{
throw new Exception($"库位{input.endlocation_id} 的终点点位未维护");
BasLocation _loc = await db.Queryable<BasLocation>().FirstAsync(it => it.id == input.endlocation_id);
throw new Exception($"终点库位{_loc.location_code} 的点位未维护");
}