Subversion Repositories SmartDukaan

Rev

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

Rev 32119 Rev 32170
Line 18... Line 18...
18
import java.util.stream.Collectors;
18
import java.util.stream.Collectors;
19
 
19
 
20
import javax.mail.internet.InternetAddress;
20
import javax.mail.internet.InternetAddress;
21
import javax.mail.internet.MimeMessage;
21
import javax.mail.internet.MimeMessage;
22
 
22
 
-
 
23
import com.spice.profitmandi.service.transaction.SDCreditService;
23
import org.apache.commons.io.output.ByteArrayOutputStream;
24
import org.apache.commons.io.output.ByteArrayOutputStream;
24
import org.apache.logging.log4j.LogManager;
25
import org.apache.logging.log4j.LogManager;
25
import org.apache.logging.log4j.Logger;
26
import org.apache.logging.log4j.Logger;
26
import org.springframework.beans.factory.annotation.Autowired;
27
import org.springframework.beans.factory.annotation.Autowired;
27
import org.springframework.core.io.ByteArrayResource;
28
import org.springframework.core.io.ByteArrayResource;
Line 63... Line 64...
63
 
64
 
64
    @Autowired
65
    @Autowired
65
    private FofoOrderItemRepository fofoOrderItemRepository;
66
    private FofoOrderItemRepository fofoOrderItemRepository;
66
 
67
 
67
    @Autowired
68
    @Autowired
68
    private SDCreditServiceImpl sdCreditServiceImpl;
69
    private SDCreditService sdCreditService;
69
 
70
 
70
    @Autowired
71
    @Autowired
71
    private RetailerService retailerService;
72
    private RetailerService retailerService;
72
 
73
 
73
    @Autowired
74
    @Autowired
Line 102... Line 103...
102
 
103
 
103
        Map<Integer, Double> tertiaryPartner = new HashMap<Integer, Double>();
104
        Map<Integer, Double> tertiaryPartner = new HashMap<Integer, Double>();
104
 
105
 
105
 
106
 
106
        if (retailerFilter.isCredit()) {
107
        if (retailerFilter.isCredit()) {
107
            List<Loan> dueDateLoans = sdCreditServiceImpl.getDueDateCrossLoan();
108
            List<Loan> dueDateLoans = sdCreditService.getDueDateCrossLoan();
108
            List<Loan> defaultLoans = sdCreditServiceImpl.getDefaultLoan();
109
            List<Loan> defaultLoans = sdCreditService.getDefaultLoan();
109
 
110
 
110
            if (!defaultLoans.isEmpty()) {
111
            if (!defaultLoans.isEmpty()) {
111
                defaultdateMap = defaultLoans.stream().collect(Collectors.groupingBy(x -> x.getFofoId()));
112
                defaultdateMap = defaultLoans.stream().collect(Collectors.groupingBy(x -> x.getFofoId()));
112
            }
113
            }
113
            if (!dueDateLoans.isEmpty()) {
114
            if (!dueDateLoans.isEmpty()) {