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;