Subversion Repositories SmartDukaan

Rev

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

Rev 30449 Rev 30677
Line 301... Line 301...
301
			return new ArrayList<UserWalletHistory>();
301
			return new ArrayList<UserWalletHistory>();
302
		}
302
		}
303
		return userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(userWallet.getId(), reference,
303
		return userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(userWallet.getId(), reference,
304
				walletReferenceType);
304
				walletReferenceType);
305
	}
305
	}
-
 
306
 
-
 
307
	@Override
-
 
308
	public void resetWallet() throws ProfitMandiBusinessException {
-
 
309
		List<UserWallet> userWallets = userWalletRepository.selectAll();
-
 
310
		for (UserWallet userWallet : userWallets) {
-
 
311
			userWallet.setAmount(this.getWalletAmount(userWallet.getUserId()));
-
 
312
 
-
 
313
		}
-
 
314
	}
306
}
315
}