wms调整插入操作记录逻辑代码

This commit is contained in:
alex
2023-06-15 18:44:45 +08:00
parent 31a5ad8b1e
commit e7f2337eeb
5 changed files with 361 additions and 7 deletions

View File

@@ -468,7 +468,11 @@ namespace Tnb.WarehouseMgr
//根据载具移入Id回更单据状态
await _db.Updateable<WmsMoveInstock>().SetColumns(it => new WmsMoveInstock { status = WmsWareHouseConst.BILLSTATUS_ON_ID }).Where(it => it.id == input.PreTaskId).ExecuteCommandAsync();
//根据生成的预任务,插入预任务操作记录
await _db.Insertable(input.PreTaskRecords).ExecuteCommandAsync();
await _db.Insertable(input.PreTaskRecord).ExecuteCommandAsync();
if(input.PreTaskHandleCodes.Count > 0)
{
await _db.Insertable(input.PreTaskHandleCodes).ExecuteCommandAsync();
}
//根据载具ID更新是否锁定和赋值起始库位
if (!input.IsCheck.HasValue)
{