|
@@ -3947,33 +3947,6 @@ public class OrderController : BaseController
|
|
|
return _sessionContext.OrgIsCenter ? dto : dto.DataMask();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 上传附件
|
|
|
- /// </summary>
|
|
|
- /// <param name="dto"></param>
|
|
|
- /// <returns></returns>
|
|
|
- //[HttpPost]
|
|
|
- //[LogFilterAlpha("上传附件")]
|
|
|
- //public async Task UploadFiles(OrderUploadFiles dto) {
|
|
|
-
|
|
|
- // var fileJson = await _fileRepository.AddFileAsync(dto.Files, dto.Id, "", HttpContext.RequestAborted);
|
|
|
-
|
|
|
- // if (fileJson.Any())
|
|
|
- // {
|
|
|
- // var order = await _orderRepository.GetAsync(dto.Id);
|
|
|
- // if (order.FileJson != null && order.FileJson.Any())
|
|
|
- // {
|
|
|
- // order.FileJson.AddRange(fileJson);
|
|
|
- // }
|
|
|
- // else {
|
|
|
- // order.FileJson = fileJson;
|
|
|
- // }
|
|
|
- // await _orderRepository.Updateable().SetColumns(x => new Order { FileJson = order.FileJson }).Where(x => x.Id == dto.Id).ExecuteCommandAsync();
|
|
|
- // }
|
|
|
- //}
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 新增工单
|
|
|
/// </summary>
|
|
@@ -4723,8 +4696,10 @@ public class OrderController : BaseController
|
|
|
// }).Where(o => o.Id == order.Id).ExecuteCommandAsync(HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
- var (_, currentStep, _, _) = await _workflowDomainService.NextAsync(_sessionContext, nextDto, order.ExpiredTime,
|
|
|
- isAutoFillSummaryOpinion, cancellationToken: cancellationToken);
|
|
|
+ var (_, currentStep, _, _) = await _workflowDomainService.NextAsync(_sessionContext, nextDto,
|
|
|
+ expiredTime: order.ExpiredTime,
|
|
|
+ isAutoFillSummaryOpinion: isAutoFillSummaryOpinion,
|
|
|
+ cancellationToken: cancellationToken);
|
|
|
if (currentStep.BusinessType is EBusinessType.Send)
|
|
|
{
|
|
|
await _orderRepository.Updateable().SetColumns(o => new Order()
|
|
@@ -4763,7 +4738,8 @@ public class OrderController : BaseController
|
|
|
OrgId = unhandleStep.HandlerOrgId,
|
|
|
OrgName = unhandleStep.HandlerOrgName,
|
|
|
};
|
|
|
- var (_, _, _, nextSteps) = await _workflowDomainService.NextAsync(operater, nextflowDto, order.ExpiredTime,
|
|
|
+ var (_, _, _, nextSteps) = await _workflowDomainService.NextAsync(operater, nextflowDto,
|
|
|
+ EHandleMode.CrossLevel, order.ExpiredTime,
|
|
|
isAutoFillSummaryOpinion, cancellationToken: cancellationToken);
|
|
|
tempSteps.AddRange(nextSteps);
|
|
|
}
|
|
@@ -4819,8 +4795,10 @@ public class OrderController : BaseController
|
|
|
NextWorkflowDto? flowDto, DateTime? expiredTime, bool isAutoFillSummaryOpinion, CancellationToken cancellation)
|
|
|
{
|
|
|
if (flowDto is null || !flowDto.NextHandlers.Any()) return;
|
|
|
- var (_, _, _, currentSteps) = await _workflowDomainService.NextAsync(current, flowDto, expiredTime,
|
|
|
- isAutoFillSummaryOpinion, cancellationToken: cancellation);
|
|
|
+ var (_, _, _, currentSteps) = await _workflowDomainService.NextAsync(current, flowDto,
|
|
|
+ expiredTime: expiredTime,
|
|
|
+ isAutoFillSummaryOpinion: isAutoFillSummaryOpinion,
|
|
|
+ cancellationToken: cancellation);
|
|
|
|
|
|
foreach (var currentStep in currentSteps)
|
|
|
{
|