|
@@ -3766,7 +3766,8 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
(step.FlowAssignType == EFlowAssignType.Org && !string.IsNullOrEmpty(step.HandlerOrgId) && step.HandlerOrgId == _sessionContext.RequiredOrgId) ||
|
|
|
(step.FlowAssignType == EFlowAssignType.Role && !string.IsNullOrEmpty(step.RoleId) && _sessionContext.Roles.Contains(step.RoleId)) ||
|
|
|
(step.FlowAssignType == EFlowAssignType.OrgAndRole && !string.IsNullOrEmpty(step.RoleId) && _sessionContext.Roles.Contains(step.RoleId)
|
|
|
- && !string.IsNullOrEmpty(step.HandlerOrgId) && step.HandlerOrgId == _sessionContext.RequiredOrgId)))
|
|
|
+ && !string.IsNullOrEmpty(step.HandlerOrgId) && step.HandlerOrgId == _sessionContext.RequiredOrgId))
|
|
|
+ && step.Status < EWorkflowStepStatus.Handled)
|
|
|
.OrderByDescending(step => step.CreationTime)
|
|
|
.Take(1)
|
|
|
.ToList())
|
|
@@ -3778,8 +3779,8 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
(step.FlowAssignType == EFlowAssignType.OrgAndRole && !string.IsNullOrEmpty(step.RoleId) && _sessionContext.Roles.Contains(step.RoleId)
|
|
|
&& !string.IsNullOrEmpty(step.HandlerOrgId) && step.HandlerOrgId == _sessionContext.RequiredOrgId))
|
|
|
&& step.Status < EWorkflowStepStatus.Handled)
|
|
|
- || (SqlFunc.IsNullOrEmpty(d.WorkflowId) && SqlFunc.IsNullOrEmpty(d.SignerId)
|
|
|
- || (!SqlFunc.IsNullOrEmpty(d.SignerId) && d.SignerId == _sessionContext.UserId))
|
|
|
+ || (SqlFunc.IsNullOrEmpty(d.WorkflowId)
|
|
|
+ && (SqlFunc.IsNullOrEmpty(d.SignerId) || (!SqlFunc.IsNullOrEmpty(d.SignerId) && d.SignerId == _sessionContext.UserId)))
|
|
|
)
|
|
|
.Where(d => d.Status < EOrderStatus.Filed
|
|
|
&& (d.Status <= EOrderStatus.HandOverToUnAccept
|