Subversion Repositories SmartDukaan

Rev

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

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