载具清空

This commit is contained in:
FanLian
2023-07-21 14:16:57 +08:00
parent 7bb60e3018
commit 87d4cb949b

View File

@@ -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<int>.Run(() => _db.CopyNew().Updateable(carryObj).ExecuteCommandAsync());
//row = await _db.CopyNew().Updateable(carryObj).ExecuteCommandAsync();
//删除对应明细表
//删除载具明细
await _db.CopyNew().Deleteable<WmsCarryD>().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<bool> _updateSubCarry<T>(ExChangeCarryInput input) where T : BaseEntity<string>, IWmsCarryEntity, new()
{
var row = -1;