| Line 548... |
Line 548... |
| 548 |
for (UserWalletHistory uwh : uwhs) {
|
548 |
for (UserWalletHistory uwh : uwhs) {
|
| 549 |
System.out.println(String.format("%d\t%d\t%s\t%s\t%s", uwh.getAmount(), uwh.getReference(),
|
549 |
System.out.println(String.format("%d\t%d\t%s\t%s\t%s", uwh.getAmount(), uwh.getReference(),
|
| 550 |
uwh.getReferenceType(), uwh.getTimestamp().toString(), uwh.getDescription()));
|
550 |
uwh.getReferenceType(), uwh.getTimestamp().toString(), uwh.getDescription()));
|
| 551 |
}
|
551 |
}
|
| 552 |
LOGGER.info("Schemes process successfully.");
|
552 |
LOGGER.info("Schemes process successfully.");
|
| 553 |
//throw new Exception();
|
553 |
throw new Exception();
|
| 554 |
}
|
554 |
}
|
| 555 |
|
555 |
|
| 556 |
public void processRechargeCashback() throws Throwable {
|
556 |
public void processRechargeCashback() throws Throwable {
|
| 557 |
LocalDateTime cashbackTime = LocalDateTime.now();
|
557 |
LocalDateTime cashbackTime = LocalDateTime.now();
|
| 558 |
int referenceId = (int) Timestamp.valueOf(cashbackTime).getTime() / 1000;
|
558 |
int referenceId = (int) Timestamp.valueOf(cashbackTime).getTime() / 1000;
|
| Line 745... |
Line 745... |
| 745 |
Attachment attachment1 = new Attachment(
|
745 |
Attachment attachment1 = new Attachment(
|
| 746 |
"pending-indent-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr1);
|
746 |
"pending-indent-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr1);
|
| 747 |
Utils.sendMailWithAttachments(googleMailSender, sendTo, null, "Stock Aeging Report", "PFA", attachment,
|
747 |
Utils.sendMailWithAttachments(googleMailSender, sendTo, null, "Stock Aeging Report", "PFA", attachment,
|
| 748 |
attachment1);
|
748 |
attachment1);
|
| 749 |
|
749 |
|
| 750 |
// Reports to be sent to mapped partners
|
750 |
//Reports to be sent to mapped partners
|
| 751 |
Map<String, Set<String>> storeGuysMap = getStoreGuyMap();
|
751 |
Map<String, Set<String>> storeGuysMap = getStoreGuyMap();
|
| 752 |
|
752 |
|
| 753 |
String[] sendToArray = new String[storeGuysMap.size()];
|
753 |
String[] sendToArray = new String[storeGuysMap.size()];
|
| 754 |
int i = 0;
|
754 |
int i = 0;
|
| 755 |
for (String storeGuyName : storeGuysMap.keySet()) {
|
755 |
for (String storeGuyName : storeGuysMap.keySet()) {
|
| Line 773... |
Line 773... |
| 773 |
|
773 |
|
| 774 |
}
|
774 |
}
|
| 775 |
|
775 |
|
| 776 |
public void sendAgeingReport() throws Exception {
|
776 |
public void sendAgeingReport() throws Exception {
|
| 777 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
777 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 778 |
"chaitnaya.vats@smartdukaan.com");
|
778 |
"chaitnaya.vats@smartdukaan.com", "amod.sen@smartdukaan.com");
|
| 779 |
}
|
779 |
}
|
| 780 |
|
780 |
|
| 781 |
public void moveImeisToPriceDropImeis() throws Exception {
|
781 |
public void moveImeisToPriceDropImeis() throws Exception {
|
| 782 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
782 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
| 783 |
for (PriceDrop priceDrop : priceDrops) {
|
783 |
for (PriceDrop priceDrop : priceDrops) {
|