From 87d4cb949bf4dcc7e15515059899d7275a8fe754 Mon Sep 17 00:00:00 2001 From: FanLian Date: Fri, 21 Jul 2023 14:16:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=BD=E5=85=B7=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs index 2e8b719b..c2d99f8a 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryService.cs @@ -172,7 +172,8 @@ namespace Tnb.WarehouseMgr carryObj.collocation_scheme_code = null; carryObj.source_id = null; carryObj.source_code = null; - row = await _db.CopyNew().Updateable(carryObj).ExecuteCommandAsync(); + Task.Run(() => _db.CopyNew().Updateable(carryObj).ExecuteCommandAsync()); + //row = await _db.CopyNew().Updateable(carryObj).ExecuteCommandAsync(); //删除对应明细表 //删除载具明细 await _db.CopyNew().Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync(); @@ -183,12 +184,13 @@ namespace Tnb.WarehouseMgr } catch (Exception ex) { - Log.Error("更新空载具出错",ex); + Log.Error("更新空载具出错", ex); throw; } return row; } + private async Task _updateSubCarry(ExChangeCarryInput input) where T : BaseEntity, IWmsCarryEntity, new() { var row = -1;