| Line 123... |
Line 123... |
| 123 |
|
123 |
|
| 124 |
private static final List<Integer> TAG_IDS = Arrays.asList(4);
|
124 |
private static final List<Integer> TAG_IDS = Arrays.asList(4);
|
| 125 |
|
125 |
|
| 126 |
@Autowired
|
126 |
@Autowired
|
| 127 |
CustomerAddressRepository customerAddressRepository;
|
127 |
CustomerAddressRepository customerAddressRepository;
|
| 128 |
|
128 |
|
| 129 |
@Autowired
|
129 |
@Autowired
|
| 130 |
WebOfferRepository webOfferRepository;
|
130 |
WebOfferRepository webOfferRepository;
|
| 131 |
|
131 |
|
| 132 |
@Value("${new.solr.url}")
|
132 |
@Value("${new.solr.url}")
|
| 133 |
private String solrUrl;
|
133 |
private String solrUrl;
|
| Line 420... |
Line 420... |
| 420 |
customerEmail, null, bccTo.toArray(new String[0]));
|
420 |
customerEmail, null, bccTo.toArray(new String[0]));
|
| 421 |
|
421 |
|
| 422 |
List<String> gmailIds = csService.getAuthUserIdByPartnerId(customRetailer.getPartnerId()).stream()
|
422 |
List<String> gmailIds = csService.getAuthUserIdByPartnerId(customRetailer.getPartnerId()).stream()
|
| 423 |
.map(x -> x.getGmailId()).collect(Collectors.toList());
|
423 |
.map(x -> x.getGmailId()).collect(Collectors.toList());
|
| 424 |
gmailIds.add("tarunverma09@gmail.com");
|
424 |
gmailIds.add("tarunverma09@gmail.com");
|
| - |
|
425 |
gmailIds.add("tejbeerkaur27@gmail.com");
|
| 425 |
List<User> user = dtrUserRepository.selectAllByEmailIds(gmailIds);
|
426 |
List<User> user = dtrUserRepository.selectAllByEmailIds(gmailIds);
|
| 426 |
List<Integer> userIds = user.stream().map(x -> x.getId()).collect(Collectors.toList());
|
427 |
List<Integer> userIds = user.stream().map(x -> x.getId()).collect(Collectors.toList());
|
| 427 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
428 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
| 428 |
sendNotificationModel.setCampaignName("Online Order Alert");
|
429 |
sendNotificationModel.setCampaignName("Online Order Alert");
|
| 429 |
sendNotificationModel.setTitle("Online Order Update");
|
430 |
sendNotificationModel.setTitle("Online Order Update");
|
| Line 445... |
Line 446... |
| 445 |
sendNotificationModel.setType("url");
|
446 |
sendNotificationModel.setType("url");
|
| 446 |
sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
|
447 |
sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
|
| 447 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
|
448 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
|
| 448 |
sendNotificationModel.setMessageType(MessageType.notification);
|
449 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| 449 |
sendNotificationModel.setUserIds(userIds);
|
450 |
sendNotificationModel.setUserIds(userIds);
|
| - |
|
451 |
notificationService.sendNotification(sendNotificationModel);
|
| 450 |
|
452 |
|
| 451 |
}
|
453 |
}
|
| 452 |
return responseSender.ok(returnMap);
|
454 |
return responseSender.ok(returnMap);
|
| 453 |
|
455 |
|
| 454 |
}
|
456 |
}
|