|
@@ -402,16 +402,24 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- //todo 指派给配置的角色
|
|
|
- //dto.FlowAssignType = EFlowAssignType.Role;
|
|
|
- dto.NextHandlers.Add(new StepAssignInfo
|
|
|
+ var orgid = nextStepDefine.BusinessType == EBusinessType.Seat ||
|
|
|
+ nextStepDefine.BusinessType == EBusinessType.Send ||
|
|
|
+ nextStepDefine.BusinessType == EBusinessType.CenterMonitor ||
|
|
|
+ nextStepDefine.BusinessType == EBusinessType.CenterLeader
|
|
|
+ ? OrgSeedData.CenterId
|
|
|
+ : null;
|
|
|
+ //todo 指派给配置的角色
|
|
|
+ //dto.FlowAssignType = EFlowAssignType.Role;
|
|
|
+ dto.NextHandlers.Add(new StepAssignInfo
|
|
|
{
|
|
|
Key = handler.Key,
|
|
|
Value = handler.Value,
|
|
|
RoleId = handler.Key,
|
|
|
RoleName = handler.Value,
|
|
|
+ OrgId = orgid,
|
|
|
FlowAssignType = EFlowAssignType.Role
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|