| Line 730... |
Line 730... |
| 730 |
StringWriter writer = new StringWriter();
|
730 |
StringWriter writer = new StringWriter();
|
| 731 |
t.merge(context, writer);
|
731 |
t.merge(context, writer);
|
| 732 |
|
732 |
|
| 733 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(pendingOrder.getFofoId());
|
733 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(pendingOrder.getFofoId());
|
| 734 |
Customer customer = customerRepository.selectById(pendingOrder.getCustomerId());
|
734 |
Customer customer = customerRepository.selectById(pendingOrder.getCustomerId());
|
| - |
|
735 |
if (!customer.getEmailId().equals(null)) {
|
| 735 |
String[] customerEmail = { customer.getEmailId() };
|
736 |
String[] customerEmail = { customer.getEmailId() };
|
| - |
|
737 |
|
| - |
|
738 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(), customerEmail);
|
| - |
|
739 |
|
| - |
|
740 |
}
|
| 736 |
|
741 |
|
| 737 |
String[] retailerEmail = { customRetailer.getEmail() };
|
742 |
String[] retailerEmail = { customRetailer.getEmail() };
|
| 738 |
|
743 |
|
| 739 |
List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
744 |
List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 740 |
"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
745 |
"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
| 741 |
"tejbeer.kaur@shop2020.in");
|
746 |
"tejbeer.kaur@shop2020.in");
|
| 742 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
747 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
| 743 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(), customerEmail);
|
- |
|
| 744 |
|
748 |
|
| 745 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
|
749 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
|
| 746 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(),
|
750 |
this.sendMailWithAttachments("Order Confirmation", writer.toString(),
|
| 747 |
sendTo.toArray(new String[sendTo.size()]));
|
751 |
sendTo.toArray(new String[sendTo.size()]));
|
| 748 |
|
752 |
|