载具清空
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user