From 10607149b4e38bbc68c23de1354efbac4b405a39 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 18 Aug 2023 15:35:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=8B=E5=8F=91?= =?UTF-8?q?=E5=B0=86carryCode=20=E6=94=B9=E4=B8=BA=20containerCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index fc650102..d5434dd6 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -353,7 +353,7 @@ namespace Tnb.WarehouseMgr taskCode = it.bill_code, sourceName = it.startpoint_code, targetName = it.endpoint_code, - carryCode = it.carry_code, + containerCode = it.carry_code, })); Log.Information($"请求地址:{url}"); foreach (var (k, v) in taskChainCodeDic) From 96b5f3ca8c1246216c9e279f0ed5509dea2f94e5 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 18 Aug 2023 15:56:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BD=90=E5=A5=97?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=B8=9A=E5=8A=A1=E5=9B=9E=E6=9B=B4=EF=BC=8C?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E6=96=99=E6=9E=B6=E6=95=B0=E6=8D=AE=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91=EF=BC=8C=E5=B0=86=E5=A7=94=E6=89=98?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E6=8F=90=E5=8F=96=E5=8D=95=E7=8B=AC=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=8C=E4=BB=A5=E5=A4=8D=E7=94=A8=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs index 25cb141d..131c9fd7 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs @@ -361,9 +361,10 @@ namespace Tnb.WarehouseMgr { await _db.Ado.BeginTranAsync(); var tasks = new List>>(); + Func>? upateNullCarryFunc = carryIt => Task.Run(() => _db.CopyNew().Updateable(carryIt).ExecuteCommandAsync()); foreach (var carryIt in carrys) { - tasks.Add(_carryService.UpdateNullCarry(carryIt, carryIt => Task.Run(() => _db.CopyNew().Updateable(carryIt).ExecuteCommandAsync()))); + tasks.Add(_carryService.UpdateNullCarry(carryIt, upateNullCarryFunc)); } var all = await Task.WhenAll(tasks.Select(t => t.Unwrap())); if (all.All(x => x > 0))