| Line 425... |
Line 425... |
| 425 |
LOGGER.info("Escalation Type {}, Region Ids {}", escalationType, regionIds);
|
425 |
LOGGER.info("Escalation Type {}, Region Ids {}", escalationType, regionIds);
|
| 426 |
List<Integer> partnerPositionsIds = partnerPositionRepository.selectByRegionIdAndPartnerId(regionIds, Arrays.asList(0, fofoId)).stream().map(x -> x.getPositionId()).collect(Collectors.toList());
|
426 |
List<Integer> partnerPositionsIds = partnerPositionRepository.selectByRegionIdAndPartnerId(regionIds, Arrays.asList(0, fofoId)).stream().map(x -> x.getPositionId()).collect(Collectors.toList());
|
| 427 |
|
427 |
|
| 428 |
List<Position> positionAssignee = positions.stream().filter(x -> x.isTicketAssignee() && partnerPositionsIds.contains(x.getId())).collect(Collectors.toList());
|
428 |
List<Position> positionAssignee = positions.stream().filter(x -> x.isTicketAssignee() && partnerPositionsIds.contains(x.getId())).collect(Collectors.toList());
|
| 429 |
LOGGER.info("User List List {}", positions.stream().map(x -> x.getAuthUserId()).collect(Collectors.toList()));
|
429 |
LOGGER.info("User List List {}", positions.stream().map(x -> x.getAuthUserId()).collect(Collectors.toList()));
|
| - |
|
430 |
LOGGER.info("positionAssignee List {}", positionAssignee);
|
| 430 |
if (positionAssignee.size() > 0) {
|
431 |
if (positionAssignee.size() > 0) {
|
| - |
|
432 |
|
| 431 |
List<AuthUser> authUsers = authRepository.selectAllAuthUserByIds(
|
433 |
List<AuthUser> authUsers = authRepository.selectAllAuthUserByIds(
|
| 432 |
positionAssignee.stream().map(x -> x.getAuthUserId()).collect(Collectors.toList()));
|
434 |
positionAssignee.stream().map(x -> x.getAuthUserId()).collect(Collectors.toList()));
|
| 433 |
authUsers = authUsers.stream().filter(x -> x.isActive()).collect(Collectors.toList());
|
435 |
authUsers = authUsers.stream().filter(x -> x.isActive()).collect(Collectors.toList());
|
| - |
|
436 |
LOGGER.info("Auth User List {}", authUsers);
|
| 434 |
if (authUsers.size() > 0) {
|
437 |
if (authUsers.size() > 0) {
|
| 435 |
authUserId = authUsers.get(0).getId();
|
438 |
authUserId = authUsers.get(0).getId();
|
| 436 |
/*
|
439 |
/*
|
| 437 |
* Random rand = new Random(); authUserId =
|
440 |
* Random rand = new Random(); authUserId =
|
| 438 |
* authUsers.get(rand.nextInt(authUsers.size())).getId();
|
441 |
* authUsers.get(rand.nextInt(authUsers.size())).getId();
|