Subversion Repositories SmartDukaan

Rev

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

Rev 30741 Rev 30742
Line 165... Line 165...
165
	}
165
	}
166
 
166
 
167
	@Override
167
	@Override
168
	public List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId)
168
	public List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId)
169
			throws ProfitMandiBusinessException {
169
			throws ProfitMandiBusinessException {
170
		if (underMaintainance || !isActive(retailerId)) {
170
		if (underMaintainance) {
171
			throw pbse;
171
			throw pbse;
172
		}
172
		}
173
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
173
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
174
		return userWalletHistoryRepository.selectByWalletId(userWallet.getId());
174
		return userWalletHistoryRepository.selectByWalletId(userWallet.getId());
175
	}
175
	}
Line 217... Line 217...
217
	}
217
	}
218
 
218
 
219
	@Override
219
	@Override
220
	public boolean isExistWalletHistory(int retailerId, int referenceId, WalletReferenceType referenceType)
220
	public boolean isExistWalletHistory(int retailerId, int referenceId, WalletReferenceType referenceType)
221
			throws ProfitMandiBusinessException {
221
			throws ProfitMandiBusinessException {
222
		if (underMaintainance || !isActive(retailerId)) {
222
		if (underMaintainance) {
223
			throw pbse;
223
			throw pbse;
224
		}
224
		}
225
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
225
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
226
		return userWalletHistoryRepository.isExist(userWallet.getId(), referenceType, referenceId);
226
		return userWalletHistoryRepository.isExist(userWallet.getId(), referenceType, referenceId);
227
	}
227
	}