This commit is contained in:
2023-10-24 11:42:37 +08:00
parent 1aa2614d26
commit 6268f63b0e
3 changed files with 41 additions and 20 deletions

View File

@@ -1124,7 +1124,7 @@ namespace Tnb.ProductionMgr
throw Oops.Bah("已开始的不能再开始");
}
if (item.mo_task_status!=DictConst.ToBeStartedEnCode || item.mo_task_status!=DictConst.MoStatusPauseCode)
if (item.mo_task_status!=DictConst.ToBeStartedEnCode && item.mo_task_status!=DictConst.MoStatusPauseCode)
{
throw Oops.Bah("状态错误无法开始");
}
@@ -1144,7 +1144,7 @@ namespace Tnb.ProductionMgr
{
throw Oops.Bah("已完成的不能再完成");
}
if (item.mo_task_status!=DictConst.InProgressEnCode || item.mo_task_status!=DictConst.MoStatusPauseCode)
if (item.mo_task_status!=DictConst.InProgressEnCode && item.mo_task_status!=DictConst.MoStatusPauseCode)
{
throw Oops.Bah("状态错误无法完成");
}