Subversion Repositories SmartDukaan

Rev

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

Rev 25534 Rev 25535
Line 670... Line 670...
670
		for (FofoStore fofoStore : fofoStores) {
670
		for (FofoStore fofoStore : fofoStores) {
671
			UserWallet uw = userWalletRepository.selectByRetailerId(fofoStore.getId());
671
			UserWallet uw = userWalletRepository.selectByRetailerId(fofoStore.getId());
672
			User user = userRepository.selectById(fofoStore.getId());
672
			User user = userRepository.selectById(fofoStore.getId());
673
			if(user==null) {
673
			if(user==null) {
674
				LOGGER.info("store does not exist", fofoStore.getCode());
674
				LOGGER.info("store does not exist", fofoStore.getCode());
-
 
675
				continue;
675
			}
676
			}
676
			Address address = addressRepository.selectById(user.getAddressId());
677
			Address address = addressRepository.selectById(user.getAddressId());
677
			int calculated = (int)userWalletHistoryRepository.selectSumByWallet(uw.getId());
678
			int calculated = (int)userWalletHistoryRepository.selectSumByWallet(uw.getId());
678
			System.out.printf("%d\t%s\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(), 
679
			System.out.printf("%d\t%s\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(), 
679
					address.getCity(), address.getName(), address.getState(), uw.getAmount(), calculated, 
680
					address.getCity(), address.getName(), address.getState(), uw.getAmount(), calculated,