Subversion Repositories SmartDukaan

Rev

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

Rev 23505 Rev 23568
Line 4... Line 4...
4
import java.util.ArrayList;
4
import java.util.ArrayList;
5
import java.util.List;
5
import java.util.List;
6
 
6
 
7
import javax.servlet.http.HttpServletRequest;
7
import javax.servlet.http.HttpServletRequest;
8
 
8
 
9
import org.slf4j.Logger;
9
import org.apache.logging.log4j.Logger;
10
import org.slf4j.LoggerFactory;
10
import org.apache.logging.log4j.LogManager;
11
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Autowired;
12
import org.springframework.stereotype.Controller;
12
import org.springframework.stereotype.Controller;
13
import org.springframework.transaction.annotation.Transactional;
13
import org.springframework.transaction.annotation.Transactional;
14
import org.springframework.ui.Model;
14
import org.springframework.ui.Model;
15
import org.springframework.web.bind.annotation.RequestMapping;
15
import org.springframework.web.bind.annotation.RequestMapping;
Line 37... Line 37...
37
	private WalletService walletService;
37
	private WalletService walletService;
38
	
38
	
39
	@Autowired
39
	@Autowired
40
	private UserWalletRepository userWalletRepository;
40
	private UserWalletRepository userWalletRepository;
41
	
41
	
42
	private static final Logger LOGGER = LoggerFactory.getLogger(WalletController.class);
42
	private static final Logger LOGGER = LogManager.getLogger(WalletController.class);
43
	
43
	
44
	@RequestMapping(value = "/walletDetails", method = RequestMethod.GET)
44
	@RequestMapping(value = "/walletDetails", method = RequestMethod.GET)
45
	public String dashboard(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.START_TIME, required = false) String startTimeString, @RequestParam(name = ProfitMandiConstants.END_TIME, required = false) String endTimeString, @RequestParam(name = "offset", defaultValue = "0") int offset, @RequestParam(name = "limit", defaultValue = "10") int limit, Model model) throws ProfitMandiBusinessException{
45
	public String dashboard(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.START_TIME, required = false) String startTimeString, @RequestParam(name = ProfitMandiConstants.END_TIME, required = false) String endTimeString, @RequestParam(name = "offset", defaultValue = "0") int offset, @RequestParam(name = "limit", defaultValue = "10") int limit, Model model) throws ProfitMandiBusinessException{
46
		LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
46
		LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
47
		
47