| Line 674... |
Line 674... |
| 674 |
|
674 |
|
| 675 |
for (Map.Entry<String, Set<String>> storeGuyEntry : csService.getAuthUserPartnerEmailMapping().entrySet()) {
|
675 |
for (Map.Entry<String, Set<String>> storeGuyEntry : csService.getAuthUserPartnerEmailMapping().entrySet()) {
|
| 676 |
List<List<? extends Serializable>> filteredRows = storeGuyEntry.getValue().stream()
|
676 |
List<List<? extends Serializable>> filteredRows = storeGuyEntry.getValue().stream()
|
| 677 |
.map(x -> partnerRow.get(x)).filter(x -> x != null).collect(Collectors.toList());
|
677 |
.map(x -> partnerRow.get(x)).filter(x -> x != null).collect(Collectors.toList());
|
| 678 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, filteredRows);
|
678 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, filteredRows);
|
| 679 |
String[] sendToArray = (String[]) storeGuyEntry.getValue().toArray();
|
679 |
String[] sendToArray = storeGuyEntry.getValue().toArray(new String[0]);
|
| 680 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Partner Investment Summary", "PFA",
|
680 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Partner Investment Summary", "PFA",
|
| 681 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
681 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
| 682 |
}
|
682 |
}
|
| 683 |
|
683 |
|
| 684 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|
684 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|