一次合格品仓库,抛光操作记录,抛光仓库修改
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user