bug,异常停机添加报修申请

This commit is contained in:
2023-06-25 11:41:32 +08:00
parent db52f09c67
commit 87e478bf8d
3 changed files with 46 additions and 2 deletions

View File

@@ -1318,6 +1318,9 @@ namespace Tnb.ProductionMgr
}
deductNum = deductNum - (detail.num - detail.use_num);
if (deductNum <= 0)
break;
}
if (deductNum > 0)
@@ -1329,9 +1332,9 @@ namespace Tnb.ProductionMgr
{
foreach (var detail in details)
{
db.Updateable<PrdFeedingD>().SetColumns(x => x.use_num == x.num)
await db.Updateable<PrdFeedingD>().SetColumns(x => x.use_num == x.num)
.SetColumns(x=>x.status=="2")
.Where(x => x.id == detail.id);
.Where(x => x.id == detail.id).ExecuteCommandAsync();
}
}
@@ -1341,6 +1344,10 @@ namespace Tnb.ProductionMgr
}
}
else
{
//throw new Exception("无投入物料");
}
}
}