Subversion Repositories SmartDukaan

Rev

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

Rev 25609 Rev 25902
Line 166... Line 166...
166
 
166
 
167
	@Override
167
	@Override
168
	public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId,
168
	public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId,
169
			LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit)
169
			LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit)
170
			throws ProfitMandiBusinessException {
170
			throws ProfitMandiBusinessException {
171
		if (underMaintainance || !isActive(retailerId)) {
171
		if (underMaintainance) {
172
			throw pbse;
172
			throw pbse;
173
		}
173
		}
174
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
174
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
175
		return userWalletHistoryRepository.selectPaginatedByWalletId(userWallet.getId(), startDateTime, endDateTime,
175
		return userWalletHistoryRepository.selectPaginatedByWalletId(userWallet.getId(), startDateTime, endDateTime,
176
				offset, limit);
176
				offset, limit);