| Line 670... |
Line 670... |
| 670 |
}
|
670 |
}
|
| 671 |
}
|
671 |
}
|
| 672 |
|
672 |
|
| 673 |
public void walletmismatch() throws Exception {
|
673 |
public void walletmismatch() throws Exception {
|
| 674 |
LocalDate curDate = LocalDate.now();
|
674 |
LocalDate curDate = LocalDate.now();
|
| 675 |
List<Integer> mismatched = new ArrayList<>();
|
- |
|
| 676 |
List<PartnerDailyInvestment> pdis = partnerDailyInvestmentRepository.selectAll(curDate.minusDays(1));
|
675 |
List<PartnerDailyInvestment> pdis = partnerDailyInvestmentRepository.selectAll(curDate.minusDays(1));
|
| 677 |
for (PartnerDailyInvestment pdi : pdis) {
|
676 |
for (PartnerDailyInvestment pdi : pdis) {
|
| 678 |
LOGGER.info("PartnerId - {}, Wallet Amount {}, Statement {}", pdi.getFofoId(), pdi.getWalletAmount(),
|
- |
|
| 679 |
walletService.getOpeningTill(pdi.getFofoId(), curDate.atStartOfDay()));
|
- |
|
| 680 |
if (pdi.getWalletAmount() != walletService.getOpeningTill(pdi.getFofoId(), curDate.atStartOfDay())) {
|
- |
|
| 681 |
mismatched.add(pdi.getFofoId());
|
677 |
int fofoId = pdi.getFofoId();
|
| 682 |
LOGGER.info("Added mistmatch for partnerId {}", pdi.getFofoId());
|
- |
|
| 683 |
}
|
- |
|
| 684 |
}
|
- |
|
| 685 |
|
- |
|
| 686 |
for (Integer fofoId : mismatched) {
|
- |
|
| 687 |
for (PartnerDailyInvestment investment : Lists
|
678 |
for (PartnerDailyInvestment investment : Lists
|
| 688 |
.reverse(partnerDailyInvestmentRepository.selectAll(fofoId, null, null))) {
|
679 |
.reverse(partnerDailyInvestmentRepository.selectAll(fofoId, null, null))) {
|
| 689 |
if (investment.getDate().isAfter(LocalDate.of(2018, 12, 20))) {
|
680 |
if (investment.getDate().isAfter(LocalDate.of(2018, 12, 25))) {
|
| 690 |
float statementAmount = walletService.getOpeningTill(fofoId,
|
681 |
float statementAmount = walletService.getOpeningTill(fofoId,
|
| 691 |
investment.getDate().plusDays(1).atStartOfDay());
|
682 |
investment.getDate().atTime(LocalTime.MAX));
|
| 692 |
if (investment.getWalletAmount() != statementAmount) {
|
683 |
if (investment.getWalletAmount() != statementAmount) {
|
| - |
|
684 |
CustomRetailer retailer = retailerService.getFofoRetailer(fofoId);
|
| 693 |
LOGGER.info("{}\t{}\t{}\t{}", fofoId, investment.getDate(), investment.getWalletAmount(),
|
685 |
LOGGER.info("{}\t{}\t{}\t{}\t{}", fofoId, retailer.getBusinessName(), investment.getDate(), investment.getWalletAmount(),
|
| 694 |
statementAmount);
|
686 |
statementAmount);
|
| 695 |
break;
|
687 |
break;
|
| 696 |
}
|
688 |
}
|
| - |
|
689 |
|
| 697 |
}
|
690 |
}
|
| 698 |
}
|
691 |
}
|
| 699 |
|
- |
|
| 700 |
}
|
692 |
}
|
| - |
|
693 |
|
| 701 |
}
|
694 |
}
|
| 702 |
|
695 |
|
| 703 |
public void escalateTicket() throws ProfitMandiBusinessException {
|
696 |
public void escalateTicket() throws ProfitMandiBusinessException {
|
| 704 |
List<Ticket> tickets = ticketRepository.selectAllNotClosedTickets();
|
697 |
List<Ticket> tickets = ticketRepository.selectAllNotClosedTickets();
|
| 705 |
for (Ticket ticket : tickets) {
|
698 |
for (Ticket ticket : tickets) {
|