| Line 749... |
Line 749... |
| 749 |
}
|
749 |
}
|
| 750 |
List<String> bccTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
750 |
List<String> bccTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 751 |
"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
751 |
"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
| 752 |
"tejbeer.kaur@shop2020.in", customRetailer.getEmail());
|
752 |
"tejbeer.kaur@shop2020.in", customRetailer.getEmail());
|
| 753 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
753 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
| 754 |
bccTo.addAll(authUserEmails);
|
754 |
if(authUserEmails != null) {
|
| - |
|
755 |
authUserEmails = new ArrayList<>();
|
| - |
|
756 |
}
|
| - |
|
757 |
logger.info("authUserEmails {}", authUserEmails);
|
| - |
|
758 |
authUserEmails.addAll(bccTo);
|
| 755 |
|
759 |
|
| 756 |
emailService.sendMailWithAttachments("Order Created with SmartDukaan", "order-confirm.vm",
|
760 |
emailService.sendMailWithAttachments("Order Created with SmartDukaan", "order-confirm.vm",
|
| 757 |
emailModel, customerEmail, null,
|
761 |
emailModel, customerEmail, null,
|
| 758 |
bccTo.toArray(new String[0]));
|
762 |
authUserEmails.toArray(new String[0]));
|
| 759 |
return responseSender.ok(pendingOrder);
|
763 |
return responseSender.ok(pendingOrder);
|
| 760 |
}
|
764 |
}
|
| 761 |
|
765 |
|
| 762 |
@RequestMapping(value = "/store/addresses/{customerId}", method = RequestMethod.GET)
|
766 |
@RequestMapping(value = "/store/addresses/{customerId}", method = RequestMethod.GET)
|
| 763 |
public ResponseEntity<?> getAll(HttpServletRequest request, @PathVariable int customerId) throws Throwable {
|
767 |
public ResponseEntity<?> getAll(HttpServletRequest request, @PathVariable int customerId) throws Throwable {
|