Subversion Repositories SmartDukaan

Rev

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

Rev 30743 Rev 30744
Line 131... Line 131...
131
 
131
 
132
	@Override
132
	@Override
133
	public UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException {
133
	public UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException {
134
		UserAccount userAccount = userAccountRepository.selectByUserIdType(userId, AccountType.saholic);
134
		UserAccount userAccount = userAccountRepository.selectByUserIdType(userId, AccountType.saholic);
135
 
135
 
136
		if (underMaintainance || !isActive(userAccount.getAccountKey())) {
136
		if (underMaintainance) {
137
			throw pbse;
137
			throw pbse;
138
		}
138
		}
139
		return userWalletRepository.selectByRetailerId(Integer.valueOf(userAccount.getAccountKey()));
139
		return userWalletRepository.selectByRetailerId(Integer.valueOf(userAccount.getAccountKey()));
140
	}
140
	}
141
 
141