| Line 417... |
Line 417... |
| 417 |
otpProcessor.sendSms(OtpProcessor.TEMPLATE_ORDER_CREATED_ID, message, customer.getMobileNumber());
|
417 |
otpProcessor.sendSms(OtpProcessor.TEMPLATE_ORDER_CREATED_ID, message, customer.getMobileNumber());
|
| 418 |
|
418 |
|
| 419 |
emailService.sendMailWithAttachments("Order Created with SmartDukaan", "order-confirm.vm", emailModel,
|
419 |
emailService.sendMailWithAttachments("Order Created with SmartDukaan", "order-confirm.vm", emailModel,
|
| 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> emailIds = csService.getAuthUserIdByPartnerId(customRetailer.getPartnerId()).stream()
|
| 423 |
.map(x -> x.getGmailId()).collect(Collectors.toList());
|
423 |
.map(x -> x.getEmailId()).collect(Collectors.toList());
|
| 424 |
gmailIds.add("tarunverma09@gmail.com");
|
424 |
emailIds.add("tarun.verma@smartdukaan.com");
|
| 425 |
gmailIds.add("tejbeerkaur27@gmail.com");
|
425 |
emailIds.add("tejbeer.kaur@shop2020.in");
|
| 426 |
List<User> user = dtrUserRepository.selectAllByEmailIds(gmailIds);
|
426 |
List<User> user = dtrUserRepository.selectAllByEmailIds(emailIds);
|
| 427 |
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());
|
| 428 |
|
428 |
|
| 429 |
logger.info("userIds" + userIds);
|
429 |
logger.info("userIds" + userIds);
|
| 430 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
430 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
| 431 |
sendNotificationModel.setCampaignName("Online Order Alert");
|
431 |
sendNotificationModel.setCampaignName("Online Order Alert");
|