Subversion Repositories SmartDukaan

Rev

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

Rev 24768 Rev 24990
Line 85... Line 85...
85
		userWalletHistory.setAmount(Math.round(amount));
85
		userWalletHistory.setAmount(Math.round(amount));
86
		userWalletHistory.setReference(referenceId);
86
		userWalletHistory.setReference(referenceId);
87
		userWalletHistory.setReferenceType(referenceType);
87
		userWalletHistory.setReferenceType(referenceType);
88
		userWalletHistory.setTimestamp(LocalDateTime.now());
88
		userWalletHistory.setTimestamp(LocalDateTime.now());
89
		userWalletHistory.setDescription(description);
89
		userWalletHistory.setDescription(description);
90
		userWalletHistoryRepository.persit(userWalletHistory);
90
		userWalletHistoryRepository.persist(userWalletHistory);
91
	}
91
	}
92
 
92
 
93
	@Override
93
	@Override
94
	public UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException {
94
	public UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException {
95
		UserAccount userAccount = userAccountRepository.selectByUserIdType(userId, AccountType.saholic);
95
		UserAccount userAccount = userAccountRepository.selectByUserIdType(userId, AccountType.saholic);
Line 198... Line 198...
198
		userWalletHistory.setWalletId(userWallet.getId());
198
		userWalletHistory.setWalletId(userWallet.getId());
199
		userWalletHistory.setTimestamp(LocalDateTime.now());
199
		userWalletHistory.setTimestamp(LocalDateTime.now());
200
		userWalletHistory.setDescription(description);
200
		userWalletHistory.setDescription(description);
201
 
201
 
202
		LOGGER.info("all_entries" + userWalletHistory);
202
		LOGGER.info("all_entries" + userWalletHistory);
203
		userWalletHistoryRepository.persit(userWalletHistory);
203
		userWalletHistoryRepository.persist(userWalletHistory);
204
 
204
 
205
		
205
		
206
	}
206
	}
207
 
207
 
208
}
208
}