This commit is contained in:
qianjiawei
2023-07-20 17:36:28 +08:00
parent d05e71ffed
commit cb5deef407
2 changed files with 12 additions and 1 deletions

View File

@@ -1004,7 +1004,16 @@ namespace Tnb.ProductionMgr
var taskReportLogs = new List<PrdMoTask>();
var prdTaskList = await db.Queryable<PrdMoTask>().Where(it => input.TaskIds.Contains(it.id)).ToListAsync();
if (prdTaskList?.Count > 0)
{
{
/*
if (prdTaskList.Where(p => p.mo_task_status == "Closed").Count() > 0 && status == "InProgress")
{
foreach (var task in prdTaskList.Where(p => p.mo_task_status == "Closed").ToList())
{
//质检
}
}
*/
prdTaskList.ForEach(x => x.mo_task_status = status);
row = await db.Updateable(prdTaskList).ExecuteCommandAsync();
if (row > 0)