From f3f7df190d4d2023adfc9b9bedd94873611c0b18 Mon Sep 17 00:00:00 2001 From: majian <780924089@qq.com> Date: Sun, 15 Sep 2024 15:07:01 +0800 Subject: [PATCH] 1 --- .../Dto/Inputs/MaterialTransferDistributeSCWToZCCInput.cs | 2 +- WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/MaterialTransferDistributeSCWToZCCInput.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/MaterialTransferDistributeSCWToZCCInput.cs index 238aa88c..e713b1d4 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/MaterialTransferDistributeSCWToZCCInput.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/MaterialTransferDistributeSCWToZCCInput.cs @@ -32,7 +32,7 @@ /// /// 起点 /// - public string startlocation_code { get; set; } + public string location_code { get; set; } } } diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs index b1717fd2..c3985910 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs @@ -2103,7 +2103,7 @@ namespace Tnb.WarehouseMgr { throw new AppFriendlyException($"载具{input.carry_code}已锁定!", 500); } - if (string.IsNullOrEmpty(input.startlocation_code)) + if (string.IsNullOrEmpty(input.location_code)) { throw new AppFriendlyException($"起点库位为空!", 500); } @@ -2140,7 +2140,7 @@ namespace Tnb.WarehouseMgr throw new AppFriendlyException($@"没有可以入库的库位", 500); } - BasLocation startLocation = await _db.Queryable().Where(r => r.location_code == input.startlocation_code).FirstAsync(); + BasLocation startLocation = await _db.Queryable().Where(r => r.location_code == input.location_code).FirstAsync(); CommonCreatePretaskInput commonCreatePretaskInput = new CommonCreatePretaskInput(); commonCreatePretaskInput.startlocation_id = startLocation.id;