From 9fb10e2c7653d90858bcd82bf821645fa934a1f5 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 21 Jun 2023 17:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=BD=E5=85=B7=E6=9B=B4=E6=8D=A2=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=B0=86modify=5Fid=EF=BC=8Cmodify=5Ftime=20=E7=BD=AE?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs index 07a99b14..3d504fa2 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs @@ -70,8 +70,8 @@ namespace Tnb.WarehouseMgr { await _db.Ado.BeginTranAsync(); - VisualDevEntity? templateEntity = await _visualDevService.GetInfoById(ModuleConsts.MODULE_WMSCARRYREPLACE_ID, true); - await _runService.Create(templateEntity, input); + //VisualDevEntity? templateEntity = await _visualDevService.GetInfoById(ModuleConsts.MODULE_WMSCARRYREPLACE_ID, true); + //await _runService.Create(templateEntity, input); var oldCarryId = input.data.ContainsKey("carry_id") ? input.data["carry_id"]?.ToString() : ""; var newCarryId = input.data.ContainsKey("newcarry_id") ? input.data["newcarry_id"]?.ToString() : ""; @@ -107,6 +107,9 @@ namespace Tnb.WarehouseMgr wmsCarryReplaceH.carry_code = oldCarry.carry_code; wmsCarryReplaceH.newcarry_id = newCarry.id; wmsCarryReplaceH.newcarry_code = newCarry.carry_code; + wmsCarryReplaceH.modify_id = null; + wmsCarryReplaceH.modify_time = null; + row = await _db.Insertable(wmsCarryReplaceH).ExecuteCommandAsync(); row = await UpdateNullCarry(oldCarry); isOk = (row > 0);