Subversion Repositories SmartDukaan

Rev

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

Rev 37848 Rev 37928
Line 3984... Line 3984...
3984
    private static List<Integer> hundredPercentLimitPartnerIds = Arrays.asList();
3984
    private static List<Integer> hundredPercentLimitPartnerIds = Arrays.asList();
3985
 
3985
 
3986
    public void notifyDefaultLoans() throws ProfitMandiBusinessException, MessagingException, IOException {
3986
    public void notifyDefaultLoans() throws ProfitMandiBusinessException, MessagingException, IOException {
3987
        synchronized (SD_CREDIT_LOCK) {
3987
        synchronized (SD_CREDIT_LOCK) {
3988
            sdCreditService.updateRisk();
3988
            sdCreditService.updateRisk();
-
 
3989
            sdCreditService.blockDefaultedPartners();
3989
            List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
3990
            List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
3990
            if (!defaultLoans.isEmpty()) {
3991
            if (!defaultLoans.isEmpty()) {
3991
                this.sendDefaultLoanAlert(defaultLoans);
3992
                this.sendDefaultLoanAlert(defaultLoans);
3992
            }
3993
            }
3993
        }
3994
        }