| Line 542... |
Line 542... |
| 542 |
LOGGER.info("Cashbacks for Recharge processed Successfully");
|
542 |
LOGGER.info("Cashbacks for Recharge processed Successfully");
|
| 543 |
}
|
543 |
}
|
| 544 |
|
544 |
|
| 545 |
public void sendPartnerInvestmentDetails(List<String> sendTo) throws Exception {
|
545 |
public void sendPartnerInvestmentDetails(List<String> sendTo) throws Exception {
|
| 546 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
546 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
| 547 |
List<FofoStore> fofoStores = fofoStoreRepository.selectAll();
|
547 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
| 548 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
548 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
| 549 |
.getFofoRetailers(fofoStores.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
549 |
.getFofoRetailers(fofoStores.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
| 550 |
|
550 |
|
| 551 |
List<String> headers = Arrays.asList("Code", "StoreName", "Email", "Mobile", "Wallet Amount",
|
551 |
List<String> headers = Arrays.asList("Code", "StoreName", "Email", "Mobile", "Wallet Amount",
|
| 552 |
"Yesterday's Sale", "In Stock Amount", "Return In Transit Stock", "Unbilled Amount",
|
552 |
"Yesterday's Sale", "In Stock Amount", "Return In Transit Stock", "Unbilled Amount",
|
| Line 1048... |
Line 1048... |
| 1048 |
Utils.sendMailWithAttachments(googleMailSender, new String[] { "amit.gupta@shop2020.in" }, null,
|
1048 |
Utils.sendMailWithAttachments(googleMailSender, new String[] { "amit.gupta@shop2020.in" }, null,
|
| 1049 |
"Partner Excess Amount Scheme Out", "PFA",
|
1049 |
"Partner Excess Amount Scheme Out", "PFA",
|
| 1050 |
new Attachment[] { new Attachment("WalletSummary.csv", new ByteArrayResource(baos.toByteArray())),
|
1050 |
new Attachment[] { new Attachment("WalletSummary.csv", new ByteArrayResource(baos.toByteArray())),
|
| 1051 |
new Attachment("SchemeOutRolledback.csv", new ByteArrayResource(baosOuts.toByteArray())) });
|
1051 |
new Attachment("SchemeOutRolledback.csv", new ByteArrayResource(baosOuts.toByteArray())) });
|
| 1052 |
|
1052 |
|
| 1053 |
// throw new Exception();
|
1053 |
throw new Exception();
|
| 1054 |
}
|
1054 |
}
|
| 1055 |
|
1055 |
|
| 1056 |
public void dryRunSchemeOutReco1() throws Exception {
|
1056 |
public void dryRunSchemeOutReco1() throws Exception {
|
| 1057 |
List<Integer> references = Arrays.asList(6744, 7347, 8320, 8891, 9124, 9217, 9263, 9379);
|
1057 |
List<Integer> references = Arrays.asList(6744, 7347, 8320, 8891, 9124, 9217, 9263, 9379);
|
| 1058 |
List<UserWalletHistory> userWalletHistory = new ArrayList<>();
|
1058 |
List<UserWalletHistory> userWalletHistory = new ArrayList<>();
|