Subversion Repositories SmartDukaan

Rev

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

Rev 36460 Rev 36461
Line 4288... Line 4288...
4288
        }
4288
        }
4289
        return suggestedAmount;
4289
        return suggestedAmount;
4290
    }
4290
    }
4291
 
4291
 
4292
    public void notifyDefaultLoans() throws ProfitMandiBusinessException, MessagingException, IOException {
4292
    public void notifyDefaultLoans() throws ProfitMandiBusinessException, MessagingException, IOException {
4293
        synchronized (SD_CREDIT_LOCK) {
4293
       // synchronized (SD_CREDIT_LOCK) {
4294
            sdCreditService.updateRisk();
4294
            sdCreditService.updateRisk();
4295
            List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
4295
            List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
4296
            if (!defaultLoans.isEmpty()) {
4296
            if (!defaultLoans.isEmpty()) {
4297
                this.sendDefaultLoanAlert(defaultLoans);
4297
                this.sendDefaultLoanAlert(defaultLoans);
4298
            }
4298
            }
4299
        }
4299
        //}
4300
    }
4300
    }
4301
 
4301
 
4302
    public void sendDefaultLoanAlert(List<Loan> defaultLoans) throws
4302
    public void sendDefaultLoanAlert(List<Loan> defaultLoans) throws
4303
            ProfitMandiBusinessException, MessagingException, IOException {
4303
            ProfitMandiBusinessException, MessagingException, IOException {
4304
        String subject = "Default Partners";
4304
        String subject = "Default Partners";