This commit is contained in:
2024-09-15 15:07:01 +08:00
parent 742a719e42
commit f3f7df190d
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
/// <summary> /// <summary>
/// 起点 /// 起点
/// </summary> /// </summary>
public string startlocation_code { get; set; } public string location_code { get; set; }
} }
} }

View File

@@ -2103,7 +2103,7 @@ namespace Tnb.WarehouseMgr
{ {
throw new AppFriendlyException($"载具{input.carry_code}已锁定!", 500); throw new AppFriendlyException($"载具{input.carry_code}已锁定!", 500);
} }
if (string.IsNullOrEmpty(input.startlocation_code)) if (string.IsNullOrEmpty(input.location_code))
{ {
throw new AppFriendlyException($"起点库位为空!", 500); throw new AppFriendlyException($"起点库位为空!", 500);
} }
@@ -2140,7 +2140,7 @@ namespace Tnb.WarehouseMgr
throw new AppFriendlyException($@"没有可以入库的库位", 500); throw new AppFriendlyException($@"没有可以入库的库位", 500);
} }
BasLocation startLocation = await _db.Queryable<BasLocation>().Where(r => r.location_code == input.startlocation_code).FirstAsync(); BasLocation startLocation = await _db.Queryable<BasLocation>().Where(r => r.location_code == input.location_code).FirstAsync();
CommonCreatePretaskInput commonCreatePretaskInput = new CommonCreatePretaskInput(); CommonCreatePretaskInput commonCreatePretaskInput = new CommonCreatePretaskInput();
commonCreatePretaskInput.startlocation_id = startLocation.id; commonCreatePretaskInput.startlocation_id = startLocation.id;