|
@@ -5384,14 +5384,14 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
|
|
|
if (_appOptions.Value.IsYiBin && order.IsProvince && sendBack.ApplyOrgId.Length == 6 && sendBack.SendBackOrgId == OrgSeedData.CenterId)
|
|
|
{
|
|
|
- if (currentStep.FlowAssignType == EFlowAssignType.User)
|
|
|
+ if (newStep.FlowAssignType == EFlowAssignType.User)
|
|
|
{
|
|
|
- await _circularRecordDomainService.OrderSendBackCircularMessage(currentStep.HandlerId, currentStep.HandlerName, order, cancellationToken);
|
|
|
+ await _circularRecordDomainService.OrderSendBackCircularMessage(newStep.HandlerId, newStep.HandlerName, order, cancellationToken);
|
|
|
}
|
|
|
- else if (currentStep.FlowAssignType == EFlowAssignType.Role && !string.IsNullOrEmpty(currentStep.RoleId))
|
|
|
+ else if (newStep.FlowAssignType == EFlowAssignType.Role && !string.IsNullOrEmpty(newStep.RoleId))
|
|
|
{
|
|
|
|
|
|
- var users = await _userRepository.Queryable().Includes(x => x.Roles).Where(x => x.Roles.Where(x => x.Id == currentStep.RoleId).Any()).ToListAsync();
|
|
|
+ var users = await _userRepository.Queryable().Includes(x => x.Roles).Where(x => x.Roles.Where(x => x.Id == newStep.RoleId).Any()).ToListAsync();
|
|
|
foreach (var user in users)
|
|
|
{
|
|
|
await _circularRecordDomainService.OrderSendBackCircularMessage(user.Id, user.Name, order, cancellationToken);
|