Subversion Repositories SmartDukaan

Rev

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

Rev 25557 Rev 25559
Line 261... Line 261...
261
 
261
 
262
	}
262
	}
263
 
263
 
264
	@Override
264
	@Override
265
	public int getWalletAmount(int retailerId) throws ProfitMandiBusinessException {
265
	public int getWalletAmount(int retailerId) throws ProfitMandiBusinessException {
266
		UserWallet userWallet = userWalletRepository.selectById(retailerId);
266
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
267
		if(userWallet==null) {
267
		if(userWallet==null) {
268
			return 0;
268
			return 0;
269
		}
269
		}
270
		return (int)userWalletHistoryRepository.selectSumByWallet(userWallet.getId());
270
		return (int)userWalletHistoryRepository.selectSumByWallet(userWallet.getId());
271
	}
271
	}