货物出库更新
This commit is contained in:
@@ -530,6 +530,7 @@ namespace ZR.Service.mes.wms
|
||||
/// <returns>(删除的成品库条数, 插入的出库记录条数)</returns>
|
||||
public (int, int) DoMaterialOut(WmDoMaterialOut_Dto doMaterialOut, string createBy)
|
||||
{
|
||||
Console.WriteLine("开始执行货物出库处理" + DateTime.Now.ToString());
|
||||
if (doMaterialOut == null)
|
||||
throw new ArgumentNullException(nameof(doMaterialOut), "出库请求数据不能为空");
|
||||
createBy = createBy?? "填充出库人";
|
||||
@@ -667,6 +668,7 @@ namespace ZR.Service.mes.wms
|
||||
throw new Exception("操作日志插入失败");
|
||||
|
||||
Context.Ado.CommitTran();
|
||||
Console.WriteLine($"出库成功:删除{finalDeleteCount}条,插入{finalInsertCount}条");
|
||||
logger.Info($"出库成功:删除{finalDeleteCount}条,插入{finalInsertCount}条");
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user