|
@@ -309,7 +309,7 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
_mapper.Map(dto, order);
|
|
_mapper.Map(dto, order);
|
|
if (files != null && files.Any())
|
|
if (files != null && files.Any())
|
|
order.FileJson = await _fileRepository.AddFileAsync(files, order.Id, "", cancellationToken);
|
|
order.FileJson = await _fileRepository.AddFileAsync(files, order.Id, "", cancellationToken);
|
|
- await _orderRepository.FileAsync(order, cancellationToken);
|
|
|
|
|
|
+ await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
}
|
|
}
|
|
|
|
|
|
return _mapper.Map<AddOrderResponse>(order);
|
|
return _mapper.Map<AddOrderResponse>(order);
|
|
@@ -343,10 +343,10 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
{
|
|
{
|
|
if (files != null && files.Any())
|
|
if (files != null && files.Any())
|
|
order.FileJson = await _fileRepository.AddFileAsync(files, order.Id, "", cancellationToken);
|
|
order.FileJson = await _fileRepository.AddFileAsync(files, order.Id, "", cancellationToken);
|
|
- await _orderRepository.FileAsync(order, cancellationToken);
|
|
|
|
- // 特提(撤回至发起)todo
|
|
|
|
- //if (!string.IsNullOrEmpty(order.WorkflowId))
|
|
|
|
- // await _workflowApplication.RecallToStartAsync(order.WorkflowId, "省工单重派", cancellationToken);
|
|
|
|
|
|
+ await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
|
+ //特提(撤回至发起)
|
|
|
|
+ if (!string.IsNullOrEmpty(order.WorkflowId))
|
|
|
|
+ await _workflowDomainService.RecallToStartStepAsync(order.WorkflowId, "省工单重派", cancellationToken);
|
|
}
|
|
}
|
|
return _mapper.Map<AddOrderResponse>(order);
|
|
return _mapper.Map<AddOrderResponse>(order);
|
|
}
|
|
}
|