|
@@ -140,7 +140,7 @@ namespace Hotline.Application.Handlers.FlowEngine
|
|
|
case EFlowAssignType.Org:
|
|
|
var orgCodes = notification.FlowAssignInfo.HandlerObjects.Select(x => x.Key);
|
|
|
var orgList = await _userRepository.Queryable().Where(x =>
|
|
|
- orgCodes.Contains(x.OrgId) && x.Roles.Any(d => d.Id == "08dae71e-0eca-4bc4-89fe-7eaefae8a98e")).ToListAsync();
|
|
|
+ orgCodes.Contains(x.OrgId) && x.Roles.Any(d => d.Id == "08dae71e-0eca-4bc4-89fe-7eaefae8a98e" || d.Id == "08dc48c7-b681-4539-860b-f391cf2aa267" || d.Id == "08dc48c7-bcf7-4c6e-8246-346db53d5bd6" || d.Id == "08dc48c8-42b8-4433-8d0f-5e177052d59d")).ToListAsync();
|
|
|
foreach (var item in orgList)
|
|
|
{
|
|
|
if (!string.IsNullOrEmpty(item.PhoneNo))
|
|
@@ -165,7 +165,7 @@ namespace Hotline.Application.Handlers.FlowEngine
|
|
|
case EFlowAssignType.User:
|
|
|
var userCodes = notification.FlowAssignInfo.HandlerObjects.Select(x => x.Key);
|
|
|
var userList = await _userRepository.Queryable().Where(x =>
|
|
|
- userCodes.Contains(x.Id) && x.Roles.Any(d => d.Id == "08dae71e-0eca-4bc4-89fe-7eaefae8a98e")).ToListAsync();
|
|
|
+ userCodes.Contains(x.Id) && x.Roles.Any(d => d.Id == "08dae71e-0eca-4bc4-89fe-7eaefae8a98e" || d.Id == "08dc48c7-b681-4539-860b-f391cf2aa267" || d.Id == "08dc48c7-bcf7-4c6e-8246-346db53d5bd6" || d.Id == "08dc48c8-42b8-4433-8d0f-5e177052d59d")).ToListAsync();
|
|
|
foreach (var item in userList)
|
|
|
{
|
|
|
var messageDto = new Share.Dtos.Push.MessageDto
|