|
@@ -722,11 +722,12 @@ public class OrderController : BaseController
|
|
|
var id = await _orderDelayRepository.AddAsync(model, HttpContext.RequestAborted);
|
|
|
try
|
|
|
{
|
|
|
-
|
|
|
var startDto = _mapper.Map<StartWorkflowDto>(dto.Workflow);
|
|
|
startDto.DefinitionModuleCode = WorkflowModuleConsts.OrderDelay;
|
|
|
startDto.Title = model.DelayReason;
|
|
|
- await _workflowApplication.StartWorkflowAsync(startDto, id, HttpContext.RequestAborted);
|
|
|
+ string workFlowId = await _workflowApplication.StartWorkflowAsync(startDto, id, HttpContext.RequestAborted);
|
|
|
+ model.WorkFlowId = workFlowId;
|
|
|
+ await _orderDelayRepository.UpdateAsync(model, HttpContext.RequestAborted);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -785,13 +786,13 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 查询工单甑别流程开启参数
|
|
|
+ /// 查询工单延期流程开启参数
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
[HttpGet("delay/startflow")]
|
|
|
- public async Task<DefinedStepDto> GetDelayFlowStartOptions()
|
|
|
+ public async Task<NextStepsDto> GetDelayFlowStartOptions()
|
|
|
{
|
|
|
- return await _workflowApplication.GetStartOptionsAsync(WorkflowModuleConsts.OrderDelay, HttpContext.RequestAborted);
|
|
|
+ return await _workflowApplication.GetStartStepsAsync(WorkflowModuleConsts.OrderDelay, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|