Subversion Repositories SmartDukaan

Rev

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

Rev 33628 Rev 33631
Line 4234... Line 4234...
4234
    }
4234
    }
4235
 
4235
 
4236
    private void sendDueDateCrossLoanAlert(List<Loan> dueDateCrossLoans) throws Exception {
4236
    private void sendDueDateCrossLoanAlert(List<Loan> dueDateCrossLoans) throws Exception {
4237
        List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY, ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS, ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT);
4237
        List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY, ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS, ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT);
4238
 
4238
 
4239
        List<Loan> filteredRows = new ArrayList<>();
-
 
4240
        for (Entry<String, Set<Integer>> storeGuyEntry : csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, false).entrySet()) {
4239
        for (Entry<String, Set<Integer>> storeGuyEntry : csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, false).entrySet()) {
-
 
4240
            List<Loan> filteredRows = new ArrayList<>();
4241
            for (Loan loan : dueDateCrossLoans) {
4241
            for (Loan loan : dueDateCrossLoans) {
4242
 
4242
 
4243
                if (storeGuyEntry.getValue().contains(loan.getFofoId())) {
4243
                if (storeGuyEntry.getValue().contains(loan.getFofoId())) {
4244
 
4244
 
4245
                    filteredRows.add(loan);
4245
                    filteredRows.add(loan);
Line 4252... Line 4252...
4252
                this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, "Due Date Cross");
4252
                this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, "Due Date Cross");
4253
 
4253
 
4254
            }
4254
            }
4255
 
4255
 
4256
        }
4256
        }
4257
        String messageText = this.getMessageForDueDateCross(filteredRows);
4257
        String messageText = this.getMessageForDueDateCross(dueDateCrossLoans);
4258
        this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com"}, messageText, null, "Due Date Cross");
4258
        this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com"}, messageText, null, "Due Date Cross");
4259
 
4259
 
4260
 
4260
 
4261
 
4261
 
4262
        if (!dueDateCrossLoans.isEmpty()) {
4262
        if (!dueDateCrossLoans.isEmpty()) {