| Line 260... |
Line 260... |
| 260 |
|
260 |
|
| 261 |
@Scheduled(fixedDelay = 30 * 60 * 1000)
|
261 |
@Scheduled(fixedDelay = 30 * 60 * 1000)
|
| 262 |
public void updateIrnsToInvoices() throws Throwable {
|
262 |
public void updateIrnsToInvoices() throws Throwable {
|
| 263 |
runOnceTasks.updateIrnsToInvoices();
|
263 |
runOnceTasks.updateIrnsToInvoices();
|
| 264 |
}
|
264 |
}
|
| - |
|
265 |
|
| 265 |
//No longer needed
|
266 |
// No longer needed
|
| 266 |
//@Scheduled(cron = "0 */10 * * * *")
|
267 |
// @Scheduled(cron = "0 */10 * * * *")
|
| 267 |
public void attachToffeeInvoices() throws Throwable {
|
268 |
public void attachToffeeInvoices() throws Throwable {
|
| 268 |
|
269 |
|
| 269 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
270 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
| 270 |
propertiesDetails.put("attachToffeeInvoices", "0");
|
271 |
propertiesDetails.put("attachToffeeInvoices", "0");
|
| 271 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
272 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| Line 362... |
Line 363... |
| 362 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
363 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 363 |
|
364 |
|
| 364 |
log.info("endTime" + LocalDateTime.now());
|
365 |
log.info("endTime" + LocalDateTime.now());
|
| 365 |
}
|
366 |
}
|
| 366 |
|
367 |
|
| - |
|
368 |
/*
|
| 367 |
/*@Scheduled(cron = "0 30 10 * * MON-SAT")
|
369 |
* @Scheduled(cron = "0 30 10 * * MON-SAT") public void
|
| 368 |
public void sendMorningAttendanceAlert() throws Throwable {
|
370 |
* sendMorningAttendanceAlert() throws Throwable { log.info("startTime" +
|
| 369 |
log.info("startTime" + LocalDateTime.now());
|
- |
|
| 370 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
371 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
| 371 |
propertiesDetails.put("sendMorningAttendanceAlert", "0");
|
372 |
* LinkedHashMap<>(); propertiesDetails.put("sendMorningAttendanceAlert", "0");
|
| 372 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
373 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
| - |
|
374 |
* nagiosCronPropertiesFile);
|
| 373 |
|
375 |
*
|
| 374 |
scheduledTasks.sendAttendanceMorningAlert();
|
376 |
* scheduledTasks.sendAttendanceMorningAlert();
|
| 375 |
propertiesDetails.put("sendMorningAttendanceAlert", "1");
|
377 |
* propertiesDetails.put("sendMorningAttendanceAlert", "1");
|
| 376 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
378 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
| - |
|
379 |
* nagiosCronPropertiesFile);
|
| 377 |
|
380 |
*
|
| 378 |
log.info("endTime" + LocalDateTime.now());
|
381 |
* log.info("endTime" + LocalDateTime.now()); }
|
| 379 |
}
|
382 |
*
|
| 380 |
|
- |
|
| 381 |
@Scheduled(cron = "0 30 20 * * MON-SAT")
|
383 |
* @Scheduled(cron = "0 30 20 * * MON-SAT") public void
|
| 382 |
public void sendEveningAttendanceAlert() throws Throwable {
|
384 |
* sendEveningAttendanceAlert() throws Throwable { log.info("startTime" +
|
| 383 |
log.info("startTime" + LocalDateTime.now());
|
- |
|
| 384 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
385 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
| 385 |
propertiesDetails.put("sendEveningAttendanceAlert", "0");
|
386 |
* LinkedHashMap<>(); propertiesDetails.put("sendEveningAttendanceAlert", "0");
|
| 386 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
387 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
| - |
|
388 |
* nagiosCronPropertiesFile);
|
| 387 |
|
389 |
*
|
| 388 |
scheduledTasks.sendAttendanceEveningAlert();
|
390 |
* scheduledTasks.sendAttendanceEveningAlert();
|
| 389 |
propertiesDetails.put("sendEveningAttendanceAlert", "1");
|
391 |
* propertiesDetails.put("sendEveningAttendanceAlert", "1");
|
| 390 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
392 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
| - |
|
393 |
* nagiosCronPropertiesFile);
|
| 391 |
|
394 |
*
|
| 392 |
log.info("endTime" + LocalDateTime.now());
|
395 |
* log.info("endTime" + LocalDateTime.now()); }
|
| 393 |
}*/
|
396 |
*/
|
| 394 |
|
397 |
|
| 395 |
@Scheduled(cron = "0 0 7 * * *")
|
398 |
@Scheduled(cron = "0 0 7 * * *")
|
| 396 |
public void onboardingEventDelays() throws Throwable {
|
399 |
public void onboardingEventDelays() throws Throwable {
|
| 397 |
log.info("startTime" + LocalDateTime.now());
|
400 |
log.info("startTime" + LocalDateTime.now());
|
| 398 |
|
401 |
|
| Line 572... |
Line 575... |
| 572 |
}
|
575 |
}
|
| 573 |
|
576 |
|
| 574 |
@Autowired
|
577 |
@Autowired
|
| 575 |
private StandAlone standAlone;
|
578 |
private StandAlone standAlone;
|
| 576 |
|
579 |
|
| 577 |
//@Scheduled(fixedDelay = 60 * 1000)
|
580 |
// @Scheduled(fixedDelay = 60 * 1000)
|
| 578 |
public void oppo() throws Throwable {
|
581 |
public void oppo() throws Throwable {
|
| 579 |
standAlone.checkOppoImeiStatus();
|
582 |
standAlone.checkOppoImeiStatus();
|
| 580 |
}
|
583 |
}
|
| 581 |
|
584 |
|
| 582 |
@Scheduled(cron = "0 0 * * * *")
|
585 |
@Scheduled(cron = "0 0 * * * *")
|
| Line 671... |
Line 674... |
| 671 |
@Scheduled(cron = "0 0 0 * * MON")
|
674 |
@Scheduled(cron = "0 0 0 * * MON")
|
| 672 |
public void monthlyTargetForInternalTeam() throws Throwable {
|
675 |
public void monthlyTargetForInternalTeam() throws Throwable {
|
| 673 |
scheduledTasks.monthlyTargetForInternalTeam();
|
676 |
scheduledTasks.monthlyTargetForInternalTeam();
|
| 674 |
|
677 |
|
| 675 |
}
|
678 |
}
|
| - |
|
679 |
|
| - |
|
680 |
@Scheduled(cron = "0 */30 * * * *")
|
| - |
|
681 |
public void pushDataToSolr() throws Throwable {
|
| - |
|
682 |
scheduledTasks.pushDataToSolr();
|
| - |
|
683 |
}
|
| - |
|
684 |
|
| - |
|
685 |
@Scheduled(cron = "0 0 8 * * *")
|
| - |
|
686 |
public void getBestSeller() throws Throwable {
|
| - |
|
687 |
scheduledTasks.getBestSeller();
|
| - |
|
688 |
}
|
| - |
|
689 |
|
| - |
|
690 |
@Scheduled(cron = "0 0 8 * * *")
|
| - |
|
691 |
public void getPriceDrop() throws Throwable {
|
| - |
|
692 |
scheduledTasks.getPriceDrop();
|
| - |
|
693 |
}
|
| - |
|
694 |
|
| - |
|
695 |
@Scheduled(cron = "0 0 8 * * *")
|
| - |
|
696 |
public void getNewLaunches() throws Throwable {
|
| - |
|
697 |
scheduledTasks.getNewLaunches();
|
| - |
|
698 |
}
|
| - |
|
699 |
|
| - |
|
700 |
@Scheduled(cron = "0 0 8 * * *")
|
| - |
|
701 |
public void getSpecialSupport() throws Throwable {
|
| - |
|
702 |
scheduledTasks.getSpecialSupport();
|
| - |
|
703 |
}
|
| - |
|
704 |
|
| - |
|
705 |
@Scheduled(cron = "0 0 8 * * *")
|
| - |
|
706 |
public void getUpgradeOffer() throws Throwable {
|
| - |
|
707 |
scheduledTasks.getUpgradeOffer();
|
| - |
|
708 |
}
|
| 676 |
/*
|
709 |
/*
|
| 677 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
710 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
| 678 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
711 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
| 679 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
712 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
| 680 |
* log.info("endTime" + LocalDateTime.now()); }
|
713 |
* log.info("endTime" + LocalDateTime.now()); }
|