| Line 1109... |
Line 1109... |
| 1109 |
}
|
1109 |
}
|
| 1110 |
|
1110 |
|
| 1111 |
|
1111 |
|
| 1112 |
public void test() throws Exception {
|
1112 |
public void test() throws Exception {
|
| 1113 |
//System.out.println(tagListingRepository.getModelSchemesByCatalogIdsAndType(175135707, PartnerType.GOLD,Arrays.asList(1024715), LocalDateTime.now()));
|
1113 |
//System.out.println(tagListingRepository.getModelSchemesByCatalogIdsAndType(175135707, PartnerType.GOLD,Arrays.asList(1024715), LocalDateTime.now()));
|
| 1114 |
List<Integer> priceDropIds = Arrays.asList(1414);
|
1114 |
/*List<Integer> priceDropIds = Arrays.asList(1414);
|
| 1115 |
for (Integer priceDropId : priceDropIds) {
|
1115 |
for (Integer priceDropId : priceDropIds) {
|
| 1116 |
System.out.println(priceDropId);
|
1116 |
System.out.println(priceDropId);
|
| 1117 |
PriceDrop priceDrop = priceDropRepository.selectById(priceDropId);
|
1117 |
PriceDrop priceDrop = priceDropRepository.selectById(priceDropId);
|
| 1118 |
System.out.println(priceDrop);
|
1118 |
System.out.println(priceDrop);
|
| 1119 |
priceDropService.processPD(priceDrop);
|
1119 |
priceDropService.processPD(priceDrop);
|
| - |
|
1120 |
}*/
|
| - |
|
1121 |
/*System.out.println(partnerTypeChangeService.getTypeOnDate(175139962, LocalDate.of(2025,Month.JULY,28)));
|
| - |
|
1122 |
System.out.println(partnerTypeChangeRepository.getRecentChange(175139962, LocalDate.of(2025,Month.JULY,28)));*/
|
| - |
|
1123 |
|
| - |
|
1124 |
LocalDate startOfPreviousMonth = LocalDate.now().with(ChronoField.DAY_OF_MONTH, 1).minusMonths(1);
|
| - |
|
1125 |
|
| - |
|
1126 |
//List<FofoStore> stores = fofoStoreRepository.selectActiveStores();
|
| - |
|
1127 |
List<Integer> storeIds = Arrays.asList(175139176, 175139026, 175139683, 175139770);
|
| - |
|
1128 |
for (Integer storeId : storeIds) {
|
| - |
|
1129 |
FofoStore store = fofoStoreRepository.selectByRetailerId(storeId);
|
| - |
|
1130 |
this.rolloutMarginForStoreOnMonth(store, startOfPreviousMonth);
|
| 1120 |
}
|
1131 |
}
|
| 1121 |
//System.out.println(partnerTypeChangeService.getTypeOnDate(175139962, LocalDate.of(2025,Month.JULY,28)));
|
- |
|
| 1122 |
//System.out.println(partnerTypeChangeRepository.getRecentChange(175139962, LocalDate.of(2025,Month.JULY,28)));
|
- |
|
| 1123 |
|
1132 |
|
| 1124 |
//System.out.println(partnerTypeChangeService.getTypeOnDate(175138843, LocalDate.of(2025,06,30).plusDays(1)));
|
1133 |
//System.out.println(partnerTypeChangeService.getTypeOnDate(175138843, LocalDate.of(2025,06,30).plusDays(1)));
|
| 1125 |
//this.rolloutMarginForStoreOnMonth(fofoStoreRepository.selectByRetailerId(175138843), LocalDate.of(2025,6,1));
|
1134 |
//this.rolloutMarginForStoreOnMonth(fofoStoreRepository.selectByRetailerId(175138843), LocalDate.of(2025,6,1));
|
| 1126 |
//Utils.sendMailWithAttachments( mailSender,"amit.gupta@smartdukaan.com", null, "Hello World!", "Test Mail", null);
|
1135 |
//Utils.sendMailWithAttachments( mailSender,"amit.gupta@smartdukaan.com", null, "Hello World!", "Test Mail", null);
|
| 1127 |
//sdCreditService.updateRisk();
|
1136 |
//sdCreditService.updateRisk();
|
| Line 3838... |
Line 3847... |
| 3838 |
|
3847 |
|
| 3839 |
}
|
3848 |
}
|
| 3840 |
|
3849 |
|
| 3841 |
}
|
3850 |
}
|
| 3842 |
String messageText = this.getMessageForDueDateExtend(defaultLoans);
|
3851 |
String messageText = this.getMessageForDueDateExtend(defaultLoans);
|
| 3843 |
this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com", "rahul.latwal@smartdukaan.com","dilbag.singh@smartdukaan.com"}, messageText, null, subject);
|
3852 |
this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com", "rahul.latwal@smartdukaan.com", "dilbag.singh@smartdukaan.com"}, messageText, null, subject);
|
| 3844 |
|
3853 |
|
| 3845 |
for (Loan defaultLoan : defaultLoans) {
|
3854 |
for (Loan defaultLoan : defaultLoans) {
|
| 3846 |
List<LoanStatement> loanStatements = loanStatementRepository.selectByLoanId(defaultLoan.getId());
|
3855 |
List<LoanStatement> loanStatements = loanStatementRepository.selectByLoanId(defaultLoan.getId());
|
| 3847 |
|
3856 |
|
| 3848 |
double amount = loanStatements.stream().map(x -> x.getAmount()).collect(Collectors.summingDouble(x -> x.doubleValue()));
|
3857 |
double amount = loanStatements.stream().map(x -> x.getAmount()).collect(Collectors.summingDouble(x -> x.doubleValue()));
|