|
@@ -1939,7 +1939,6 @@ public class OrderController : BaseController
|
|
|
urge.ReplyFileJson = await _fileRepository.AddFileAsync(dto.Files, urge.Id, "", HttpContext.RequestAborted);
|
|
|
await _orderUrgeRepository.UpdateAsync(urge, HttpContext.RequestAborted);
|
|
|
|
|
|
- //发送短信TODO
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -2299,7 +2298,11 @@ public class OrderController : BaseController
|
|
|
[HttpPost("handle")]
|
|
|
public async Task Handle([FromBody] NextWorkflowDto dto)
|
|
|
{
|
|
|
- //todo 验证是否有在审核中的延期
|
|
|
+ var order = await _orderRepository.GetAsync(x => x.WorkflowId == dto.WorkflowId);
|
|
|
+ if(await _orderDelayRepository.AnyAsync(x => x.OrderId == order.Id && x.DelayState == EDelayState.Examining))
|
|
|
+ {
|
|
|
+ throw UserFriendlyException.SameMessage("该工单存在正在审核中的延期,不能办理");
|
|
|
+ }
|
|
|
await _workflowApplication.NextAsync(dto, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|