| Line 1241... |
Line 1241... |
| 1241 |
|
1241 |
|
| 1242 |
//System.out.println(trialFormRepository.selectByEmailOrMobile("9990381568"));
|
1242 |
//System.out.println(trialFormRepository.selectByEmailOrMobile("9990381568"));
|
| 1243 |
/*CreditBlockedExceptionPartner creditBlockedExceptionPartner = creditBlockedExceptionPartnersRepository.select(175139430);
|
1243 |
/*CreditBlockedExceptionPartner creditBlockedExceptionPartner = creditBlockedExceptionPartnersRepository.select(175139430);
|
| 1244 |
System.out.println(creditBlockedExceptionPartner);*/
|
1244 |
System.out.println(creditBlockedExceptionPartner);*/
|
| 1245 |
//this.updatePartnerLimit(175139595);
|
1245 |
//this.updatePartnerLimit(175139595);
|
| - |
|
1246 |
this.regenerateDCInvoices();
|
| 1246 |
this.releaseBlockedLimit();
|
1247 |
this.releaseBlockedLimit();
|
| 1247 |
//sdCreditService.resetHardLimit();
|
1248 |
//sdCreditService.resetHardLimit();
|
| 1248 |
//migrations.migrateSerialInvoiceMap();
|
1249 |
//migrations.migrateSerialInvoiceMap();
|
| 1249 |
//runOnceTasks.checkRewardsEligibility();
|
1250 |
//runOnceTasks.checkRewardsEligibility();
|
| 1250 |
//hybridEncryptor.getJwt();
|
1251 |
//hybridEncryptor.getJwt();
|
| Line 1286... |
Line 1287... |
| 1286 |
}
|
1287 |
}
|
| 1287 |
});*/
|
1288 |
});*/
|
| 1288 |
//Utils.sendMailWithAttachments(googleMailSender, new String[]{"amit.gupta@smartdukaan.com"}, null, "DTDC AWb", "PFA");*/
|
1289 |
//Utils.sendMailWithAttachments(googleMailSender, new String[]{"amit.gupta@smartdukaan.com"}, null, "DTDC AWb", "PFA");*/
|
| 1289 |
}
|
1290 |
}
|
| 1290 |
|
1291 |
|
| - |
|
1292 |
private void regenerateDCInvoices() {
|
| - |
|
1293 |
List<String> dcInvoiceNumbers = Arrays.asList(
|
| - |
|
1294 |
"DCNSUPDL5", "DCNSUPDL4", "DCNSLCK2", "DCNSUPDL3",
|
| - |
|
1295 |
"DCNSUPDL2", "DCNSUPDL1", "DCNSLCK1");
|
| - |
|
1296 |
for (String invoiceNumber : dcInvoiceNumbers) {
|
| - |
|
1297 |
try {
|
| - |
|
1298 |
List<Order> orders = orderRepository.selectByInvoiceNumber(invoiceNumber);
|
| - |
|
1299 |
if (!orders.isEmpty()) {
|
| - |
|
1300 |
invoiceService.saveInvoice(orders);
|
| - |
|
1301 |
System.out.println("Regenerated DC: " + invoiceNumber);
|
| - |
|
1302 |
}
|
| - |
|
1303 |
} catch (Exception e) {
|
| - |
|
1304 |
System.out.println("Failed to regenerate DC: " + invoiceNumber + " - " + e.getMessage());
|
| - |
|
1305 |
}
|
| - |
|
1306 |
}
|
| - |
|
1307 |
}
|
| - |
|
1308 |
|
| 1291 |
private void releaseBlockedLimit() throws ProfitMandiBusinessException {
|
1309 |
private void releaseBlockedLimit() throws ProfitMandiBusinessException {
|
| 1292 |
List<Loan> blockedLoans = loanRepository.selectAllBlockedLoans();
|
1310 |
List<Loan> blockedLoans = loanRepository.selectAllBlockedLoans();
|
| 1293 |
for (Loan blockedLoan : blockedLoans) {
|
1311 |
for (Loan blockedLoan : blockedLoans) {
|
| 1294 |
LoanTransaction loanTransaction = loanTransactionRepository.selectByLoanId(blockedLoan.getId());
|
1312 |
LoanTransaction loanTransaction = loanTransactionRepository.selectByLoanId(blockedLoan.getId());
|
| 1295 |
int transactionId = loanTransaction.getTransactionId();
|
1313 |
int transactionId = loanTransaction.getTransactionId();
|