| Line 843... |
Line 843... |
| 843 |
List<SchemeInOut> rolledbackSios = new ArrayList<>();
|
843 |
List<SchemeInOut> rolledbackSios = new ArrayList<>();
|
| 844 |
Map<Integer, SchemeType> schemeTypeMap = schemeRepository.selectAll().stream()
|
844 |
Map<Integer, SchemeType> schemeTypeMap = schemeRepository.selectAll().stream()
|
| 845 |
.collect(Collectors.toMap(Scheme::getId, Scheme::getType));
|
845 |
.collect(Collectors.toMap(Scheme::getId, Scheme::getType));
|
| 846 |
Set<String> serialNumbersConsidered = new HashSet<>();
|
846 |
Set<String> serialNumbersConsidered = new HashSet<>();
|
| 847 |
|
847 |
|
| 848 |
LocalDateTime startDate = LocalDate.of(2019, 5, 1).atStartOfDay();
|
848 |
LocalDateTime startDate = LocalDate.of(2018, 3, 1).atStartOfDay();
|
| 849 |
LocalDateTime endDate = LocalDate.now().atStartOfDay();
|
849 |
LocalDateTime endDate = LocalDate.now().atStartOfDay();
|
| 850 |
List<Purchase> purchases = purchaseRepository.selectAllBetweenPurchaseDate(startDate, endDate);
|
850 |
List<Purchase> purchases = purchaseRepository.selectAllBetweenPurchaseDate(startDate, endDate);
|
| 851 |
|
851 |
|
| 852 |
Map<Integer, String> storeNameMap = fofoStoreRepository.getStoresMap();
|
852 |
Map<Integer, String> storeNameMap = fofoStoreRepository.getStoresMap();
|
| 853 |
purchases.stream().forEach(purchase -> {
|
853 |
purchases.stream().forEach(purchase -> {
|
| Line 937... |
Line 937... |
| 937 |
Utils.sendMailWithAttachments(googleMailSender, new String[] { "amit.gupta@shop2020.in" }, null,
|
937 |
Utils.sendMailWithAttachments(googleMailSender, new String[] { "amit.gupta@shop2020.in" }, null,
|
| 938 |
"Partner Excess Amount Scheme In", "PFA",
|
938 |
"Partner Excess Amount Scheme In", "PFA",
|
| 939 |
new Attachment[] { new Attachment("WalletSummary.csv", new ByteArrayResource(baos.toByteArray())),
|
939 |
new Attachment[] { new Attachment("WalletSummary.csv", new ByteArrayResource(baos.toByteArray())),
|
| 940 |
new Attachment("SchemeInRolledback.csv", new ByteArrayResource(baosOuts.toByteArray())) });
|
940 |
new Attachment("SchemeInRolledback.csv", new ByteArrayResource(baosOuts.toByteArray())) });
|
| 941 |
|
941 |
|
| 942 |
// throw new Exception();
|
942 |
throw new Exception();
|
| 943 |
|
943 |
|
| 944 |
}
|
944 |
}
|
| 945 |
|
945 |
|
| 946 |
public void dryRunOutSchemeReco() throws Exception {
|
946 |
public void dryRunOutSchemeReco() throws Exception {
|
| 947 |
List<UserWalletHistory> userWalletHistory = new ArrayList<>();
|
947 |
List<UserWalletHistory> userWalletHistory = new ArrayList<>();
|