Subversion Repositories SmartDukaan

Rev

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

Rev 35107 Rev 35110
Line 3946... Line 3946...
3946
        List<AST> asts = astRepository.selectAll();
3946
        List<AST> asts = astRepository.selectAll();
3947
        Map<Integer, AST> astMap = asts.stream()
3947
        Map<Integer, AST> astMap = asts.stream()
3948
                .collect(Collectors.toMap(AST::getId, ast -> ast));
3948
                .collect(Collectors.toMap(AST::getId, ast -> ast));
3949
 
3949
 
3950
        StringBuilder sb = new StringBuilder();
3950
        StringBuilder sb = new StringBuilder();
3951
        sb.append("<html><body><p>Alert</p><p>Due Date Cross Partners :-</p>" + "<br/><p>Additional penal interest of  shall be levied on daily basis.</p>" + "<br/>" +
3951
        sb.append("<html><body><p>Alert</p><p>Partner Credit Report :-</p>" + "<br/><p>Additional penal interest of  shall be levied on daily basis.</p>" + "<br/>" +
3952
                "<table style='border:1px solid black ;padding: 5px';>");
3952
                "<table style='border:1px solid black ;padding: 5px';>");
3953
        sb.append("<tbody>\n" + "<tr>\n" +
3953
        sb.append("<tbody>\n" + "<tr>\n" +
3954
                "<th style='border:1px solid black;padding: 5px'>PartnerName</th>\n" +
3954
                "<th style='border:1px solid black;padding: 5px'>PartnerName</th>\n" +
3955
                "<th style='border:1px solid black;padding: 5px'>State Name</th>\n" +
3955
                "<th style='border:1px solid black;padding: 5px'>State Name</th>\n" +
3956
                "<th style='border:1px solid black;padding: 5px'>Area</th>\n" +
3956
                "<th style='border:1px solid black;padding: 5px'>Area</th>\n" +
Line 3999... Line 3999...
3999
        return sb.toString();
3999
        return sb.toString();
4000
    }
4000
    }
4001
 
4001
 
4002
    public void notifyLoanDueDateCross() throws Exception {
4002
    public void notifyLoanDueDateCross() throws Exception {
4003
 
4003
 
4004
        List<Loan> dueDateCrossLoans = sdCreditService.getDueDateCrossLoan();
4004
        List<Loan> dueDateCrossLoans = sdCreditService.getAllActiveLoan();
4005
        if (!dueDateCrossLoans.isEmpty()) {
4005
        if (!dueDateCrossLoans.isEmpty()) {
4006
            this.sendDueDateCrossLoanAlert(dueDateCrossLoans);
4006
            this.sendDueDateCrossLoanAlert(dueDateCrossLoans);
4007
        }
4007
        }
4008
 
4008
 
4009
    }
4009
    }