|
@@ -1,4 +1,5 @@
|
|
|
-using Hotline.Application.FlowEngine;
|
|
|
+using Conductor.Domain.Models;
|
|
|
+using Hotline.Application.FlowEngine;
|
|
|
using Hotline.Application.Knowledge;
|
|
|
using Hotline.FlowEngine.Definitions;
|
|
|
using Hotline.FlowEngine.Workflows;
|
|
@@ -17,6 +18,7 @@ using MapsterMapper;
|
|
|
using MediatR;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using SqlSugar;
|
|
|
+using WorkflowCore.Primitives;
|
|
|
using XF.Domain.Authentications;
|
|
|
using XF.Domain.Exceptions;
|
|
|
|
|
@@ -481,7 +483,8 @@ namespace Hotline.Api.Controllers
|
|
|
.OrderByDescending(p => p.CreationTime)
|
|
|
.ToPagedListAsync(pagedDto.PageIndex, pagedDto.PageSize, HttpContext.RequestAborted);
|
|
|
|
|
|
- //var canHandle = items.First().Workflow.CanHandle(_sessionContext.RequiredUserId, _sessionContext.RequiredOrgCode);
|
|
|
+ //处理是否可以办理
|
|
|
+ items.ForEach(d => d.CanHandle = d.Workflow.CanHandle(_sessionContext.RequiredUserId, _sessionContext.RequiredOrgCode));
|
|
|
|
|
|
return new PagedDto<KnowledgeApprovalDataDto>(total, _mapper.Map<IReadOnlyList<KnowledgeApprovalDataDto>>(items));
|
|
|
}
|