|
@@ -1264,7 +1264,10 @@ public class OrderController : BaseController
|
|
|
var result = await _workflowApplication.GetNextStepsAsync(workflowId, HttpContext.RequestAborted);
|
|
|
if (!orderDelay.Order.IsProvince)
|
|
|
{
|
|
|
- result.Steps.Remove(result.Steps.First(x => x.Value == "省审批"));
|
|
|
+ if(result.Steps.Any(x => x.Value == "省审批"))
|
|
|
+ {
|
|
|
+ result.Steps.Remove(result.Steps.First(x => x.Value == "省审批"));
|
|
|
+ }
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
@@ -1636,7 +1639,10 @@ public class OrderController : BaseController
|
|
|
var result = await _workflowApplication.GetNextStepsAsync(workflowId, HttpContext.RequestAborted);
|
|
|
if (!orderScreen.Order.IsProvince)
|
|
|
{
|
|
|
- result.Steps.Remove(result.Steps.First(x => x.Value == "省审批"));
|
|
|
+ if (result.Steps.Any(x=>x.Value == "省审批"))
|
|
|
+ {
|
|
|
+ result.Steps.Remove(result.Steps.First(x => x.Value == "省审批"));
|
|
|
+ }
|
|
|
}
|
|
|
return result;
|
|
|
}
|