Subversion Repositories SmartDukaan

Rev

Rev 32740 | Rev 32777 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32740 Rev 32742
Line 276... Line 276...
276
            for (Integer fofoId : fofoIds) {
276
            for (Integer fofoId : fofoIds) {
277
                LOGGER.info("Fofo Id - {}", fofoId);
277
                LOGGER.info("Fofo Id - {}", fofoId);
278
                List<Loan> activeLoans = activeLoansMap.get(fofoId);
278
                List<Loan> activeLoans = activeLoansMap.get(fofoId);
279
                if (activeLoans != null) {
279
                if (activeLoans != null) {
280
                    partnerActiveLoanMap.put(fofoId, activeLoans.size());
280
                    partnerActiveLoanMap.put(fofoId, activeLoans.size());
281
                    Loan loan = activeLoans.get(0);
281
                    Loan loan = activeLoans.stream().sorted(Comparator.comparing(Loan::getCreatedOn)).findFirst().get();
282
                    long daysBetween = Duration.between(loan.getCreatedOn(), LocalDateTime.now()).toDays();
282
                    long daysBetween = Duration.between(loan.getCreatedOn(), LocalDateTime.now()).toDays();
283
                    partnerCreditDaysMap.put(fofoId, daysBetween);
283
                    partnerCreditDaysMap.put(fofoId, daysBetween);
284
                }
284
                }
285
                List<Loan> closedLoans = partnerClosedLoansMap.get(fofoId);
285
                List<Loan> closedLoans = partnerClosedLoansMap.get(fofoId);
286
                if (closedLoans != null) {
286
                if (closedLoans != null) {