Subversion Repositories SmartDukaan

Rev

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

Rev 34306 Rev 34307
Line 26... Line 26...
26
    TransactionRepository transactionRepository;
26
    TransactionRepository transactionRepository;
27
 
27
 
28
    @Autowired
28
    @Autowired
29
    LoanRepository loanRepository;
29
    LoanRepository loanRepository;
30
 
30
 
31
    public void test() throws Exception {
31
    public void test(List<Integer> loanIds) throws Exception {
32
        System.out.println("test start");
32
        System.out.println("test start");
33
        this.findLoanTransactionMapingAccordingLoan();
33
        this.findLoanTransactionMapingAccordingLoan(loanIds);
34
        System.out.println("test end");
34
        System.out.println("test end");
35
 
35
 
36
    }
36
    }
37
 
37
 
38
 
38
 
39
 
39
 
40
    public Map<Integer,Integer> findLoanTransactionMapingAccordingLoan() throws ProfitMandiBusinessException {
40
    public Map<Integer,Integer> findLoanTransactionMapingAccordingLoan(List<Integer> loanIds) throws ProfitMandiBusinessException {
41
        List<Integer> loanIds = new ArrayList<>(Arrays.asList(34833,36536,37151,37489,37502,37970,37997,38012));
-
 
42
 
41
 
43
        Map<Integer, Integer> transactionLoanMap = new HashMap<>();
42
        Map<Integer, Integer> transactionLoanMap = new HashMap<>();
44
 
43
 
45
        for(int loanId : loanIds){
44
        for(int loanId : loanIds){
46
            Transaction transaction = null;
45
            Transaction transaction = null;