| Line 120... |
Line 120... |
| 120 |
Set<AuthUser> authUsers = new HashSet<>(
|
120 |
Set<AuthUser> authUsers = new HashSet<>(
|
| 121 |
csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
|
121 |
csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
|
| 122 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY));
|
122 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY));
|
| 123 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES));
|
123 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES));
|
| 124 |
List<String> emailIds = authUsers.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
124 |
List<String> emailIds = authUsers.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
| 125 |
emailIds.add("devki.nandan@smartdukaan.com");
|
125 |
emailIds.add("devkinandan.lal@smartdukaan.com");
|
| 126 |
List<User> systemUsers = dtrUserRepository.selectAllByEmailIds(emailIds);
|
126 |
List<User> systemUsers = dtrUserRepository.selectAllByEmailIds(emailIds);
|
| 127 |
sendNotificationModel.getUserIds()
|
127 |
sendNotificationModel.getUserIds()
|
| 128 |
.addAll(systemUsers.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
128 |
.addAll(systemUsers.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
| 129 |
this.sendNotification(sendNotificationModel);
|
129 |
this.sendNotification(sendNotificationModel);
|
| 130 |
}
|
130 |
}
|