|
@@ -2411,10 +2411,10 @@ public class OrderController : BaseController
|
|
|
.FirstAsync(d => d.WorkflowId == dto.WorkflowId, HttpContext.RequestAborted);
|
|
|
if (order is null)
|
|
|
throw new UserFriendlyException("无效工单编号");
|
|
|
- //if (await _orderDelayRepository.AnyAsync(x => x.OrderId == order.Id && x.DelayState == EDelayState.Examining, HttpContext.RequestAborted))
|
|
|
- //{
|
|
|
- // throw UserFriendlyException.SameMessage("该工单存在正在审核中的延期,不能办理");
|
|
|
- //}
|
|
|
+ if (await _orderDelayRepository.AnyAsync(x => x.OrderId == order.Id && x.DelayState == EDelayState.Examining, HttpContext.RequestAborted))
|
|
|
+ {
|
|
|
+ throw UserFriendlyException.SameMessage("该工单存在正在审核中的延期,不能办理");
|
|
|
+ }
|
|
|
if (await _orderSendBackAuditRepository.AnyAsync(x => x.OrderId == order.Id && x.State == ESendBackAuditState.Apply, HttpContext.RequestAborted))
|
|
|
{
|
|
|
throw UserFriendlyException.SameMessage("该工单存在正在审核中的退回,不能办理");
|
|
@@ -3026,7 +3026,11 @@ public class OrderController : BaseController
|
|
|
//if (dto.AlterTime)
|
|
|
// recall.External = new External { TimeLimit = dto.TimeLimit, TimeLimitUnit = dto.TimeLimitUnit };
|
|
|
//if (dto.Files.Any()) recall.Files = dto.Files;
|
|
|
- await _workflowApplication.RecallAsync(recall, HttpContext.RequestAborted);
|
|
|
+
|
|
|
+ //todo 特提重办(确认重办需求:目标节点必须是坐席?派单?中心?,特提是否会出现45工作日),按审批通过时间依据中心派至部门的规则计算期满时间,更新order
|
|
|
+
|
|
|
+
|
|
|
+ await _workflowApplication.RecallAsync(recall, null, HttpContext.RequestAborted);
|
|
|
var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == dto.OrderId);
|
|
|
if (publish != null)
|
|
|
{
|
|
@@ -3105,7 +3109,10 @@ public class OrderController : BaseController
|
|
|
//if (dto.AlterTime)
|
|
|
// recall.External = new External { TimeLimit = dto.TimeLimit, TimeLimitUnit = dto.TimeLimitUnit };
|
|
|
//if (dto.Files.Any()) recall.Files = dto.Files;
|
|
|
- await _workflowApplication.RecallAsync(recall, HttpContext.RequestAborted);
|
|
|
+
|
|
|
+ //todo 特提重办,按审批通过时间依据中心派至部门的规则计算期满时间,更新order
|
|
|
+
|
|
|
+ await _workflowApplication.RecallAsync(recall, null, HttpContext.RequestAborted);
|
|
|
var publish = await _orderPublishRepository.GetAsync(x => x.OrderId == special.OrderId);
|
|
|
if (publish != null)
|
|
|
{
|