Subversion Repositories SmartDukaan

Rev

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

Rev 22857 Rev 22925
Line 23... Line 23...
23
public class WalletServiceImpl implements WalletService {
23
public class WalletServiceImpl implements WalletService {
24
 
24
 
25
	private static final Logger LOGGER = LoggerFactory.getLogger(WalletServiceImpl.class);
25
	private static final Logger LOGGER = LoggerFactory.getLogger(WalletServiceImpl.class);
26
	
26
	
27
	@Autowired
27
	@Autowired
28
	UserAccountRepository userAccountRepository;
28
	private UserAccountRepository userAccountRepository;
29
	
29
	
30
	@Autowired
30
	@Autowired
31
	UserWalletRepository userWalletRepository;
31
	private UserWalletRepository userWalletRepository;
32
	
32
	
33
	@Autowired
33
	@Autowired
34
	UserWalletHistoryRepository userWalletHistoryRepository;
34
	private UserWalletHistoryRepository userWalletHistoryRepository;
35
	
35
	
36
	@Override
36
	@Override
37
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description,
37
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description,
38
			float amount) throws ProfitMandiBusinessException{
38
			float amount) throws ProfitMandiBusinessException{
39
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
39
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);