Browse Source

Merge branch 'dev' of http://git.12345lm.cn/Fengwo/hotline into dev

Dun.Jason 10 months ago
parent
commit
c9379ef2ef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 2 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -27,6 +27,7 @@ using Hotline.Settings.TimeLimits;
 using Hotline.Share.Dtos;
 using Hotline.Share.Dtos.Enterprise;
 using Hotline.Share.Dtos.FlowEngine;
+using Hotline.Share.Dtos.FlowEngine.Workflow;
 using Hotline.Share.Dtos.Order;
 using Hotline.Share.Dtos.Settings;
 using Hotline.Share.Enums.CallCenter;
@@ -2272,7 +2273,7 @@ public class OrderController : BaseController
             var result = await _workflowDomainService.GetWorkflowHandlePermissionAsync(
                 order.WorkflowId, _sessionContext.RequiredUserId, _sessionContext.RequiredOrgId, _sessionContext.Roles,
                 cancellationToken: HttpContext.RequestAborted);
-            //order.Workflow = result.Workflow;
+            dto.Workflow = _mapper.Map<WorkflowDto>(result.Workflow);
             dto.CountersignId = result.CountersignId;
             dto.CanHandle = result.CanHandle;
             dto.CanPrevious = result.CanPrevious;