|
@@ -1215,9 +1215,9 @@ public class OrderController : BaseController
|
|
|
/// <returns></returns>
|
|
|
[HttpPost("delay/cancel")]
|
|
|
[LogFilter("取消工单延期")]
|
|
|
- public async Task CancelDelay([FromBody]string id)
|
|
|
+ public async Task CancelDelay([FromBody] CancelDelayDto dto)
|
|
|
{
|
|
|
- var orderDelay = await _orderDelayRepository.GetAsync(id, HttpContext.RequestAborted);
|
|
|
+ var orderDelay = await _orderDelayRepository.GetAsync(x=>x.OrderId== dto.Id && x.DelayState == EDelayState.Examining, HttpContext.RequestAborted);
|
|
|
if (orderDelay != null)
|
|
|
{
|
|
|
await _workflowDomainService.TerminateAsync(new TerminateDto() { WorkflowId = orderDelay.WorkflowId, Opinion = "" }, HttpContext.RequestAborted);
|