|
@@ -2601,10 +2601,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("该工单存在正在审核中的退回,不能办理");
|