|
@@ -347,14 +347,21 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
|
|
|
/// </summary>
|
|
|
public async Task<EFlowDirection> PreviousAsync(PreviousWorkflowDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- var workflow = await _workflowDomainService.GetWorkflowAsync(dto.WorkflowId, withSteps: true,
|
|
|
+ var workflow = await _workflowDomainService.GetWorkflowAsync(dto.WorkflowId, withDefine: true, withSteps: true,
|
|
|
withTraces: true, withCountersigns: true, cancellationToken: cancellationToken);
|
|
|
- return await _workflowDomainService.PreviousAsync(workflow, dto,
|
|
|
+ //return await _workflowDomainService.PreviousAsync(workflow, dto,
|
|
|
+ // _sessionContextProvider.SessionContext.RequiredUserId, _sessionContextProvider.SessionContext.UserName,
|
|
|
+ // _sessionContextProvider.SessionContext.RequiredOrgId, _sessionContextProvider.SessionContext.OrgName,
|
|
|
+ // _sessionContextProvider.SessionContext.OrgAreaCode, _sessionContextProvider.SessionContext.OrgAreaName,
|
|
|
+ // _sessionContextProvider.SessionContext.OrgIsCenter, _sessionContextProvider.SessionContext.Roles,
|
|
|
+ // cancellationToken);
|
|
|
+
|
|
|
+ return await _workflowDomainService.PreviousAsync(workflow, dto, new OperatorInfo(
|
|
|
_sessionContextProvider.SessionContext.RequiredUserId, _sessionContextProvider.SessionContext.UserName,
|
|
|
_sessionContextProvider.SessionContext.RequiredOrgId, _sessionContextProvider.SessionContext.OrgName,
|
|
|
_sessionContextProvider.SessionContext.OrgAreaCode, _sessionContextProvider.SessionContext.OrgAreaName,
|
|
|
_sessionContextProvider.SessionContext.OrgIsCenter, _sessionContextProvider.SessionContext.Roles,
|
|
|
- cancellationToken);
|
|
|
+ _sessionContextProvider.SessionContext.OrgLevel), cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -363,16 +370,23 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
|
|
|
public async Task<EFlowDirection> PreviousAsync(PreviousWorkflowDto dto, string applicantId, string applicantOrgId, string[] applicantRoleIds,
|
|
|
CancellationToken cancellationToken)
|
|
|
{
|
|
|
- var workflow = await _workflowDomainService.GetWorkflowAsync(dto.WorkflowId, withSteps: true,
|
|
|
+ var workflow = await _workflowDomainService.GetWorkflowAsync(dto.WorkflowId, withDefine: true, withSteps: true,
|
|
|
withTraces: true, withCountersigns: true, cancellationToken: cancellationToken);
|
|
|
var user = await _userRepository.Queryable()
|
|
|
.Includes(x => x.Organization)
|
|
|
.FirstAsync(x => x.Id == applicantId, cancellationToken);
|
|
|
- return await _workflowDomainService.PreviousAsync(workflow, dto,
|
|
|
+ //return await _workflowDomainService.PreviousAsync(workflow, dto,
|
|
|
+ // applicantId, user.Name,
|
|
|
+ // applicantOrgId, user.Organization.Name,
|
|
|
+ // user.Organization.AreaCode, user.Organization.AreaName,
|
|
|
+ // user.Organization.IsCenter, applicantRoleIds, cancellationToken);
|
|
|
+
|
|
|
+ return await _workflowDomainService.PreviousAsync(workflow, dto, new OperatorInfo(
|
|
|
applicantId, user.Name,
|
|
|
applicantOrgId, user.Organization.Name,
|
|
|
user.Organization.AreaCode, user.Organization.AreaName,
|
|
|
- user.Organization.IsCenter, applicantRoleIds, cancellationToken);
|
|
|
+ user.Organization.IsCenter, applicantRoleIds,
|
|
|
+ user.Organization.Level), cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|