Subversion Repositories SmartDukaan

Rev

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

Rev 25551 Rev 25552
Line 262... Line 262...
262
	}
262
	}
263
 
263
 
264
	@Override
264
	@Override
265
	public int getWalletAmount(int retailerId) throws ProfitMandiBusinessException {
265
	public int getWalletAmount(int retailerId) throws ProfitMandiBusinessException {
266
		UserWallet userWallet = userWalletRepository.selectById(retailerId);
266
		UserWallet userWallet = userWalletRepository.selectById(retailerId);
-
 
267
		if(userWallet==null) {
-
 
268
			return 0;
-
 
269
		}
267
		return (int)userWalletHistoryRepository.selectSumByWallet(userWallet.getId());
270
		return (int)userWalletHistoryRepository.selectSumByWallet(userWallet.getId());
268
	}
271
	}
269
 
272
 
270
}
273
}