bug,异常停机添加报修申请
This commit is contained in:
@@ -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("无投入物料");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user