This commit is contained in:
2024-09-21 09:30:19 +08:00
parent d35203a505
commit 1c04f0449f
4 changed files with 17 additions and 0 deletions

View File

@@ -342,6 +342,11 @@ namespace Tnb.WarehouseMgr
}
}
else
{
throw new AppFriendlyException($"【OutsourcedPartsInstock】点位不存在", 500);
}
// 更新成品调拨入库单子表已下发数量
await _db.Updateable<WmsTransferInstockD>().SetColumns(r => r.xf_qty == r.xf_qty + input.qty).Where(r => r.id == input.source_id).ExecuteCommandAsync();

View File

@@ -171,6 +171,10 @@ namespace Tnb.WarehouseMgr
}
}
else
{
throw new AppFriendlyException($"【PDAWmsEmptyIn】点位不存在", 500);
}
await _db.Ado.CommitTranAsync();
}

View File

@@ -221,6 +221,10 @@ namespace Tnb.WarehouseMgr
it => new BasLocation { is_lock = 1 }, _db);
}
}
else
{
throw new AppFriendlyException($"【PDAWmsEmptyOut】点位不存在", 500);
}
await _db.Ado.CommitTranAsync();
}

View File

@@ -372,6 +372,10 @@ namespace Tnb.WarehouseMgr
}
}
else
{
throw new AppFriendlyException($"【WmsSaleReleaseService Distribute】点位不存在", 500);
}
}
Logger.LogInformation($"【Distribute】 预计生成{items_sorttask.Count}条分拣任务");