|
@@ -27,6 +27,7 @@ using Hotline.Settings.TimeLimits;
|
|
using Hotline.Share.Dtos;
|
|
using Hotline.Share.Dtos;
|
|
using Hotline.Share.Dtos.Enterprise;
|
|
using Hotline.Share.Dtos.Enterprise;
|
|
using Hotline.Share.Dtos.FlowEngine;
|
|
using Hotline.Share.Dtos.FlowEngine;
|
|
|
|
+using Hotline.Share.Dtos.FlowEngine.Workflow;
|
|
using Hotline.Share.Dtos.Order;
|
|
using Hotline.Share.Dtos.Order;
|
|
using Hotline.Share.Dtos.Settings;
|
|
using Hotline.Share.Dtos.Settings;
|
|
using Hotline.Share.Enums.CallCenter;
|
|
using Hotline.Share.Enums.CallCenter;
|
|
@@ -773,10 +774,14 @@ public class OrderController : BaseController
|
|
var detaildto = dto.VisitDetails.FirstOrDefault(x => x.Id == detail.Id);
|
|
var detaildto = dto.VisitDetails.FirstOrDefault(x => x.Id == detail.Id);
|
|
if (detaildto != null)
|
|
if (detaildto != null)
|
|
{
|
|
{
|
|
|
|
+ if (visit.Order.SourceChannelCode != "RGDH" && detaildto.VisitTarget == EVisitTarget.Seat)
|
|
|
|
+ {
|
|
|
|
+ detaildto.SeatEvaluate = ESeatEvaluate.DefaultSatisfied;
|
|
|
|
+ }
|
|
_mapper.Map(detaildto, visit.OrderVisitDetails[i]);
|
|
_mapper.Map(detaildto, visit.OrderVisitDetails[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted);
|
|
await _orderVisitedDetailRepository.UpdateRangeAsync(visit.OrderVisitDetails, HttpContext.RequestAborted);
|
|
await _orderVisitedDetailRepository.UpdateRangeAsync(visit.OrderVisitDetails, HttpContext.RequestAborted);
|
|
await _orderRepository.UpdateAsync(visit.Order, HttpContext.RequestAborted);
|
|
await _orderRepository.UpdateAsync(visit.Order, HttpContext.RequestAborted);
|
|
@@ -2268,7 +2273,7 @@ public class OrderController : BaseController
|
|
var result = await _workflowDomainService.GetWorkflowHandlePermissionAsync(
|
|
var result = await _workflowDomainService.GetWorkflowHandlePermissionAsync(
|
|
order.WorkflowId, _sessionContext.RequiredUserId, _sessionContext.RequiredOrgId, _sessionContext.Roles,
|
|
order.WorkflowId, _sessionContext.RequiredUserId, _sessionContext.RequiredOrgId, _sessionContext.Roles,
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
- //order.Workflow = result.Workflow;
|
|
|
|
|
|
+ dto.Workflow = _mapper.Map<WorkflowDto>(result.Workflow);
|
|
dto.CountersignId = result.CountersignId;
|
|
dto.CountersignId = result.CountersignId;
|
|
dto.CanHandle = result.CanHandle;
|
|
dto.CanHandle = result.CanHandle;
|
|
dto.CanPrevious = result.CanPrevious;
|
|
dto.CanPrevious = result.CanPrevious;
|