更新空载具,删除明细
This commit is contained in:
@@ -139,6 +139,13 @@ namespace Tnb.WarehouseMgr
|
|||||||
carryObj.source_id = null;
|
carryObj.source_id = null;
|
||||||
carryObj.source_code = null;
|
carryObj.source_code = null;
|
||||||
row = await _db.Updateable(carryObj).ExecuteCommandAsync();
|
row = await _db.Updateable(carryObj).ExecuteCommandAsync();
|
||||||
|
//删除对应明细表
|
||||||
|
//删除载具明细
|
||||||
|
await _db.Deleteable<WmsCarryD>().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
|
||||||
|
//删除载具分拣物料明细
|
||||||
|
await _db.Deleteable<WmsCarryMat>().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
|
||||||
|
//删除载具条码
|
||||||
|
await _db.Deleteable<WmsCarryCode>().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user