Subversion Repositories SmartDukaan

Rev

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

Rev 34332 Rev 34364
Line 17... Line 17...
17
import com.spice.profitmandi.dao.repository.fofo.SalesRatingRepository;
17
import com.spice.profitmandi.dao.repository.fofo.SalesRatingRepository;
18
import com.spice.profitmandi.dao.repository.transaction.LoanRepository;
18
import com.spice.profitmandi.dao.repository.transaction.LoanRepository;
19
import com.spice.profitmandi.dao.repository.transaction.TransactionRepository;
19
import com.spice.profitmandi.dao.repository.transaction.TransactionRepository;
20
import com.spice.profitmandi.dao.repository.user.UserRepository;
20
import com.spice.profitmandi.dao.repository.user.UserRepository;
21
import com.spice.profitmandi.service.transaction.SDCreditService;
21
import com.spice.profitmandi.service.transaction.SDCreditService;
-
 
22
import com.spice.profitmandi.service.wallet.WalletService;
22
import org.apache.logging.log4j.LogManager;
23
import org.apache.logging.log4j.LogManager;
23
import org.apache.logging.log4j.Logger;
24
import org.apache.logging.log4j.Logger;
24
import org.springframework.beans.factory.annotation.Autowired;
25
import org.springframework.beans.factory.annotation.Autowired;
25
import org.springframework.beans.factory.annotation.Value;
26
import org.springframework.beans.factory.annotation.Value;
26
import org.springframework.mail.javamail.JavaMailSender;
27
import org.springframework.mail.javamail.JavaMailSender;
Line 69... Line 70...
69
    SalesRatingRepository salesRatingRepository;
70
    SalesRatingRepository salesRatingRepository;
70
 
71
 
71
    @Autowired
72
    @Autowired
72
    FofoStoreRepository fofoStoreRepository;
73
    FofoStoreRepository fofoStoreRepository;
73
 
74
 
-
 
75
    @Autowired
-
 
76
    WalletService walletService;
-
 
77
 
74
    public void test() throws Exception {
78
    public void test() throws Exception {
75
        System.out.println("test start");
-
 
76
        this.sendRbmFeedbackSummaryEmail();
-
 
77
        this.sendSalesFeedbackSummaryEmail();
-
 
78
        System.out.println("test end");
-
 
79
 
79
 
-
 
80
        walletService.getUserWalletHistoryByUserId(175140109);
80
    }
81
    }
81
 
82
 
82
    public void createLoanForBillingByTransactionIdAndInvoiceNumber(int transactionId, double invoiceAmount, String invoiceNumber) throws Exception {
83
    public void createLoanForBillingByTransactionIdAndInvoiceNumber(int transactionId, double invoiceAmount, String invoiceNumber) throws Exception {
83
        sdCreditService.createLoanForBilling(transactionId, invoiceAmount, invoiceNumber);
84
        sdCreditService.createLoanForBilling(transactionId, invoiceAmount, invoiceNumber);
84
 
85