一次合格品仓库,抛光操作记录,抛光仓库修改

This commit is contained in:
2024-08-08 17:14:03 +08:00
parent 52f1ae30f3
commit 8b9205cea3
33 changed files with 3419 additions and 9 deletions

View File

@@ -425,7 +425,11 @@ namespace ZR.Service.mes.wms
.Where(it => it.Id == parm.Id)
.Where(it => it.Status == 1)
.First();
polishInventory.Quantity = parm.Quantity;
if (polishInventory == null)
{
Context.Ado.RollbackTran();
throw new Exception("盘点记录不存在" + parm.Id);
}
Context.Updateable(parm).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
// 已有则新增记录
string code = SnowFlakeSingle.Instance.NextId().ToString();