Subversion Repositories SmartDukaan

Rev

Rev 34906 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34906 Rev 34917
Line 35... Line 35...
35
 
35
 
36
    @Autowired
36
    @Autowired
37
    CustomerRepository customerRepository;
37
    CustomerRepository customerRepository;
38
 
38
 
39
    @Override
39
    @Override
40
    public void createEarnings() {}
40
    public void createEarnings(AffiliateEarnings earnings) {
-
 
41
        affiliateRepository.persist(earnings);
-
 
42
    }
41
 
43
 
42
    @Override
44
    @Override
43
    public AffiliateEarnings getEarnings() {
45
    public List<AffiliateEarnings> getEarnings(int customerId) {
44
        return null;
46
        return affiliateRepository.findEarningsByCustomerId(customerId);
45
    }
47
    }
46
 
48
 
47
    @Override
49
    @Override
48
    public Map<String,Object> getAffiliateData(int customerId) throws ProfitMandiBusinessException {
50
    public Map<String,Object> getAffiliateData(int customerId) throws ProfitMandiBusinessException {
49
        Map<String,Object> resMap = new HashMap<>();
51
        Map<String,Object> resMap = new HashMap<>();